tampermonkey 油猴插件
sa-token.cc 免start浏览
// ==UserScript==
// @name sa-token.cc 免start浏览
// @namespace https://sa-token.cc/
// @version 0.1
// @description 去除https://sa-token.cc/doc.html 文档的查看权限
// @author jcleng
// @match https://sa-token.cc/doc.html*
// @require http://code.jquery.com/jquery-migrate-1.2.1.min.js
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant GM_log
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
console.log("location.hostname",location.hostname)
// 允许滚动
$(".markdown-section").css("overflow-y", "scroll");
$(".markdown-section").css("height", "800px");
// 循环检查
setInterval(() => {
console.log("check");
var lastChild = $("body").children().last();
if (lastChild.hasClass("layui-layer-dialog")) {
lastChild.remove();
}
lastChild = $("body").children().last();
if (lastChild.hasClass("layui-layer-shade")) {
lastChild.remove();
}
}, 1000);
})();
全局字体
// ==UserScript==
// @name 全局字体
// @namespace font
// @version 0.1
// @description 全局字体
// @author jcleng
// @match *://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @run-at document-end
// ==/UserScript==
(function () {
'use strict';
setInterval(function(){
const allTags = document.querySelectorAll('*');
allTags.forEach(tag => {
tag.style.fontFamily = 'JetBrains Mono,微软雅黑';
});
}, 1000)
})();
插件下载
https://greasyfork.org/