0
我在加載<script src=..
的頁面上運行tampermonkey腳本。Tampermonkey + jQuery。防止在腳本標記中加載window.location
其部分腳本使用window.location
,我想在_blank
窗口中將其更改爲window.open(..
。我的腳本工作正常,但它也運行window.location
如何防止window.location
觸發?
我在加載<script src=..
的頁面上運行tampermonkey腳本。Tampermonkey + jQuery。防止在腳本標記中加載window.location
其部分腳本使用window.location
,我想在_blank
窗口中將其更改爲window.open(..
。我的腳本工作正常,但它也運行window.location
如何防止window.location
觸發?
該腳本使用$(document).delegate(".element", "click", function(){ window.location ...
,所以我只使用$(document).undelegate(".clickable-element", "click")
,它停止改變當前窗口。