[英]Use the Tampermonkey API from the Chrome console?
创建以下脚本:
// ==UserScript== // @name Exports some GM functions // @namespace Whatever // @match * // ==/UserScript== // WARNING: Any page can now use these methods! Be careful, // or change "@match *" to "@match https://example.com" and // visit https://example.com to test the API. unsafeWindow.GM_xmlhttpRequest = GM_xmlhttpRequest; unsafeWindow.GM_listValues = GM_listValues;
打开可以激活Tampermonkey的任何页面(例如https://stackoverflow.com/ )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.