GM_addElement(tag_name, attributes), GM_addElement(parent_node, tag_name, attributes) GM_addStyle(css) GM_download(details), GM_download(url, name) GM_getResourceText(name) GM_getResourceURL(name) GM_info GM_log(message) GM_notification(details, ondone), GM_notification(text, title, im...
functionGM_deleteValue(name) 参数 示例 GM_deleteValue("foo"); letkeys =GM_listValues(); for(letkeyofkeys) { GM_deleteValue(key); } GM_notification 描述 显示一条通知消息 语法 functionGM_notification(details) 或者 functionGM_notification(text, title, image, onclick) 参数 示例 GM_notification...
GM_getValue 和 GM_setValue:表示脚本需要使用 GM_getValue 和 GM_setValue 函数来进行数据存储和读取。 GM_listValues:允许脚本列出所有已存储的值的键名。 GM_xmlhttpRequest:表示脚本需要使用 GM_xmlhttpRequest 函数来进行跨域请求。 GM_notification : 允许脚本显示桌面通知。 unsafeWindow:表示脚本需要访问页面...
解决了当未设置 onclick 监听器时,GM_notification url 属性无法正常使用的问题。移除了无冲突时的脚本修改冲突警告,提供更流畅的用户体验。修复了脚本在需要本地文件时的即时注入模式问题,确保功能正常。解决了与从某些 Gitlab URL 安装脚本相关的问题,提高了稳定性。删除了有关脚本修改后脚本更新将被禁用的警告...
GM_log(message) 将日志打印到控制台中,可以使用F12开发者工具查看。 GM_addStyle(css) 像网页中添加自己的样式表。 GM_notification(details, ondone), GM_notification(text, title, image, onclick) 设置网页通知,请参考文档获取用法。 GM_openInTab(url, loadInBackground) 在浏览器中打开网页,可以设置是否...
GM_notification(details, ondone), GM_notification(text, title, image, onclick)设置网页通知,请参考文档获取用法。 GM_openInTab(url, loadInBackground)在浏览器中打开网页,可以设置是否在后台打开等几个选项 ——— 添加元素 GM_addElement('script...
GM_setClipboard(“test”) // @grant GM_notification // 弹出提示框 GM_notification("cookie copy clipboard") // 发送get 请求 // @grant GM_xmlhttpRequest //发起一个get请求 GM_xmlhttpRequest({ method: "GET", url: "http://www.example.com/", ...
GM_notification(text, title, image, onclick)打开新选项卡 GM_openInTab(url, options),GM_openInTab(url, loadInBackground)菜单注册 GM_registerMenuCommand(name, callback, accessKey)菜单注销 GM_unregisterMenuCommand(menuCmdId)设置剪切板 GM_setClipboard(data, info)windows窗体操作:窗口地址改...
GM_addStyle(css)像网页中添加自己的样式表。 GM_notification(details, ondone), GM_notification(text, title, image, onclick)设置网页通知,请参考文档获取用法。 GM_openInTab(url, loadInBackground)在浏览器中打开网页,可以设置是否在后台打开等几个选项 ...
GM_getResourceText(name)获取@resource 引入的资源文件的源地址 GM_getResourceURL(name)控制台打印 GM_log(message) 屏幕通知 GM_notification(details, ondone), GM_notification(text, title, image, onclick) 打开新选项卡 GM_openInTab(url, options), GM_openInTab(url, loadInBackground)菜单注册 GM_...