-
0 votesanswersviews
在greasemonkey脚本中打印`event`对象会默默地终止执行,如何查看`event`?
这是我的脚本(故意简化): // ==UserScript== // @name StackOverflowExample // @include https://stackoverflow.com/* // @version 1 // @grant none // ==/UserScript== document.addEventListen... -
152 votesanswersviews
如何在Google Chrome中的Greasemonkey脚本中使用jQuery?
有些人可能知道,谷歌Chrome对Greasemonkey脚本有一些严重的限制 . Chromium不支持@require,@ resources,unsafeWindow,GM_registerMenuCommand,GM_setValue或GM_getValue . 没有require,我找不到在Google Chrome下的Greasemonkey脚本中包含jQuery库的方法 . 有没... -
29 votesanswersviews
如何使用Greasemonkey / Tampermonkey脚本更改类CSS?
我正在尝试设置正文的背景图像,但仅限于使用类 banner_url 的位置 . HTML如下: <body id="app_body" class="banner_url desktopapp" data-backdrop-limit="1"> 基本上,我想强制页面使用以下CSS: .banner_url { ba... -
3 votesanswersviews
window.Object!= greasemonkey脚本的对象
以下脚本将 false 记录到控制台 . 有谁知道它带来了什么或带来了什么好处? 从简短的一瞥到Greasemonkey 's source code I couldn't找到任何修改 Object 的东西 . 同时查看 Object 很难看到任何有意义的差异,所有函数仍然是本机代码 . // ==UserScript== // @name test // @namespace ...