您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
use old blues
当前为
// ==UserScript== // @name Revert Blues // @version 4.5 // @namespace https://greasyfork.org/users/65414 // @description use old blues // @author You // @match https://www.tumblr.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @grant GM_getValue // @grant GM_setValue // @run-at document-start // ==/UserScript== (function() { if (GM_getValue("updateoff") == null) { GM_setValue("updateoff", true) } let repeatRemove = setInterval(() => $("body").toggleClass('flag--accessibility-design-update', !GM_getValue("updateoff")), 1); setTimeout(() => { clearInterval(repeatRemove);}, 5000); if (window.location.href.indexOf("/settings/dashboard") > -1) { function addOption(){ if ($('#user_enable_uiupdate').length){ clearInterval(repeatAdd); } else { $('<div class="checkbox setting"><label class="binary_switch"><input type="checkbox" name="user[enable_uiupdate]" id="user_enable_uiupdate" value="on"'+ (GM_getValue("updateoff") !== true ? ' checked="checked"' : '' ) + '> <span class="binary_switch_track"></span><span class="binary_switch_button"></span></label><label for="user_enable_uiupdate">Enable the accessibility UI design update</label></div>').appendTo(".interface .group_content"); } } let repeatAdd = setInterval(() => addOption(), 1); } $(window).on('load', function() { $('#user_enable_uiupdate').click(function(){ clearInterval(repeatRemove) if (GM_getValue("updateoff") == true){ GM_setValue("updateoff",false); } else { GM_setValue("updateoff",true); } $("body").toggleClass('flag--accessibility-design-update'); }); }); })();