您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A resource JS library file providing common useful functions to be used by other scripts
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/19968/693868/TSLibrary%20-%20Generic.js
Sample useful functionality that are used in some of my scripts. Some of the functions listed below. Look inside script for details.
TSL object is a copy of TimidScriptLibrary
TSL = TimidScriptLibrary
NOTE: If doc
parameter is undefined it uses the current document.
Add CSS styles/JS Script to document header. Document can be left empty.
TSL.addStyle(id, CSS, doc)
TSL.addScript(id, text, doc)
Returns the thickness of the scrollbar
TSL.getScrollBarThickness()
Node className functions. All three functions can handle multiple class names separated by spaces
TSL.addClass(node, name)
TSL.removeClass(node, name)
TSL.hasClass(node, name)
Remove node from document. Accepts id or node object
TSL.removeNode(node, doc)
Creates document element. Default doc value is the document.
TSL.createElement(tag, attributes, doc)
Creates document element using html code. Default doc value is the document.
TSL.createElementHTML(html, doc)
Checks if mouse event is within an elements client area
TSL.isMouseEventInClientArea(event, element)
Gets the position of the element within the document
TSL.getAbsolutePosition(element)
String padding (prototype)
String.lpad(chr, Total_length)
String.rpad(chr, Total_length)
Replace NTFS illegal characters alternatives
TSL.replaceNTFSIllegals(str)
TSL.ALTNTFSChars = [[">", ">"],["<", "<"],[":", ":"],['"', """],["/", "/"],["\\", "\"],["?", "?"],["*", "*"]];
Escape regexp string
TSL.escapeRegExp(str)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址