您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Автоматически переключает c anistar.appspot.com на незаблокированное зеркало
// ==UserScript== // @name Anistar редирект // @description Автоматически переключает c anistar.appspot.com на незаблокированное зеркало // @include /^https?://(.*)anistar(.*).appspot.com/.*$/ // @run-at document-body // @grant GM_setValue // @grant GM_getValue // @author DygDyg // @require https://code.jquery.com/jquery-3.3.1.min.js // @icon https://anistar.appspot.com/favicon.png // @version 0.7 // @namespace http://tampermonkey.net/ // ==/UserScript== var $ = window.jQuery; if (GM_getValue('refrsh', null) == null) GM_setValue('refrsh', 0); var refrsh = GM_getValue('refrsh'); $(document).ready(function () { var dop = "raspisanie-vyhoda-seriy-ongoingov.html"; var x1 = $(".btn.btn-large.animated.tada"); if (x1.length) { GM_setValue('refrsh', 0); document.location.href = x1.text() + "/" + dop; } else { /*if (refrsh <= 5) { console.log(refrsh); refrsh = refrsh + 1; GM_setValue('refrsh', refrsh); window.location.reload(); } else { alert('Шот пошло не так?'); GM_setValue('refrsh', 0); }*/ window.location.reload(); } });