您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It helps your life customizing Feeder.
当前为
// ==UserScript== // @name JS and CSS on Feeder. // @version 1.0.0 // @description It helps your life customizing Feeder. // @author はー /h/ // @match *.x-feeder.info/* // @grant none // @namespace https://greasyfork.org/users/534841 // ==/UserScript== // Remove ads. $("#main_right div:first").remove(); $("#main_right div:last").remove(); // White any JS code you want to load. var js_first = ` /* Enter Your JS code here ... */ ` // White any CSS code you want to load. var css_first = ` /* Enter Your CSS code here ... */ ` $("head").append(`<div id="scripts"><script>` + js_first + `</script></div>`) $("#main_right").prepend(`<textarea id="js_code" style="width: 300px; height: 250px; margin-bottom: 8px;">` + js_first + `</textarea>`); $(function() { $('textarea[id="js_code"]').keyup(function() { const js_code = $("#js_code").val(); $("#scripts").append("<script>" + js_code + "</script>"); $("#scripts").empty(); }); }); $("head").append(`<style type="text/css" id="css">` + css_first + `</style>`); $("#main_right").prepend(`<textarea id="css_code" style="width: 300px; height: 250px; margin-bottom: 8px;">` + css_first + `</textarea>`); $(function() { $('textarea[id="css_code"]').keyup(function() { const css_code = $("#css_code").val(); $("#css")[0].innerHTML = css_code ; }); });