您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Contains several functions for injecting html/js/css
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyforks.org/scripts/40894/266335/%5BLIBRARY%5D%20InjectorLib.js
// ==UserScript== // @name [LIBRARY] InjectorLib // @namespace http://thebone.ml/tampermonkey // @version 1.0 // @updateURL http://thebone.ml/tampermonkey/ressource // @downloadURL http://thebone.ml/tampermonkey/ // @description Contains several functions for injecting html/js/css // @author TheBone // ==/UserScript== function inject_srcjs(link) { $('<script type="text/javascript" src="' + link + '"/>').appendTo($('head')); } function inject_rawjs(jsstring) { $('<script type="text/javascript">' + jsstring + '</string>').appendTo($('head')); } function inject_headhtml(htmlstring) { $(htmlstring).appendTo($('head')); } function inject_bodyhtml(htmlstring) { $(htmlstring).appendTo($('body')); } function inject_customhtml(htmlstring, appendto) { $(htmlstring).appendTo($(appendto)); } function inject_globalcss(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }