您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Attempts to enable access to country-restricted video.
// ==UserScript== // @name HDRezka Unrestricted // @namespace lainscripts_hdr_unr // @version 0.3 // @description Attempts to enable access to country-restricted video. // @author lainverse // @match *://hdrezka.me/* // @run-at document-start // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; let setTo = '0', attName = 'data-restricted', _hasAttribute = Element.prototype.hasAttribute, _setAttribute = Element.prototype.setAttribute; function applyUnrestrict(node) { if (_hasAttribute.call(node, attName)) { _setAttribute.call(node, attName, setTo); } if (node.classList.contains('active')) { node.classList.remove('active'); node.click(); } } function unsetRestricted(scope) { for (let node of scope.querySelectorAll('['+attName+']:not(['+attName+'="'+setTo+'"]')) { applyUnrestrict(node); } } document.addEventListener('DOMContentLoaded', function(){ unsetRestricted(document.body); }); (new MutationObserver(function(ms){ for (let m of ms) { for (let node of m.removedNodes) { if (node.nodeType === Node.ELEMENT_NODE) { console.log('r', node); } } for (let node of m.addedNodes) { if (node.nodeType === Node.ELEMENT_NODE) { console.log('a', node); if (node.tagName === 'LI') { applyUnrestrict(node); } if (node.tagName === 'UL') { unsetRestricted(node); } } } } })).observe(document, {subtree: true, childList: true}); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址