Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manatsu-asuka-qin/6e590b657509a7cc44d6f9d5756bfc91 to your computer and use it in GitHub Desktop.
Save manatsu-asuka-qin/6e590b657509a7cc44d6f9d5756bfc91 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Abema 区域限制
// @version 1.0.0
// @run-at document-end
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// ==/UserScript==
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', {
get: () => true
});
Object.defineProperty(__CLIENT_REGION__, 'status', {
get: () => false
});
@manatsu-asuka-qin
Copy link
Author

4b441 commented on 8 Jun 2020
你好,感谢分享,minyami超可爱。我想用任意外国IP地址观看abema海外版,试着添加了

Object.defineProperty(CLIENT_REGION, 'cdnURL', {
get: () => 'https://ds-glb-linear-abematv.akamaized.net/region'
});
Object.defineProperty(CLIENT_REGION, 'divisionCode', {
get: () => 1
});
使用abema不支持的外国IP测试,发现可以正常观看支持海外的直播频道譬如麻将。但看录播的时候似乎仍然会通过https://abematv.akamaized.net/region 检测区域,必须用日本IP验证,但视频流走的是https://ds-glb-vod-abematv.akamaized.net ,可以用外国IP下载。假如用原本可看海外版的IP,则会从https://ds-glb-linear-abematv.akamaized.net/region 检测,可以正常观看。

请问能不能帮忙改写一个外国IP用的版本,感谢!

@Last-Order

Last-Order commented on 8 Jun 2020
你的意思是想把 https://abematv.akamaized.net/region 劫持到 https://ds-glb-linear-abematv.akamaized.net/region 吗?
可以试试这个:https://chrome.google.com/webstore/detail/reres/gieocpkbblidnocefjakldecahgeeica
@4b441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment