Larvata / AbemaTV region free

// ==UserScript==
// @name         AbemaTV region free
// @namespace    https://github.com/larvata
// @version      0.2
// @description  Bypass the strict IP check for abematv, but you still need a Japan IP to use the video service. 
// @author       Larvata
// @match        https://abema.tv/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    window._fetch = window.fetch;
    window.fetch = (url, options) => {
        const regionCheckUrl = 'https://api.abema.io/v1/ip/check';
        if (url !== regionCheckUrl) {
            return window._fetch.call(this, url, options);
        }

        return new Promise((resolve, reject) => {
            resolve({status: 200, fake: true});
        });
    };
})();