Greasy Fork

脚本常用方法库

为其他脚本提供常用的方法集

目前为 2019-10-11 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/391004/739780/%E8%84%9A%E6%9C%AC%E5%B8%B8%E7%94%A8%E6%96%B9%E6%B3%95%E5%BA%93.js

// ==UserScript==
// @name         脚本常用方法库
// @namespace    http://www.itdomain.top/
// @version      0.1
// @description  为其他脚本提供常用的方法集
// @author       gwl
// @match        *
// @grant        none
// ==/UserScript==

function GUtil(){
        this.test = function(){
            alert(123);
        };
    
}
window.gUtil = new GUtil();