以下では、このページをテストに使用します。http://nitroflare.com/view/A71F0994E20F2E0/security-privacy.jpgページ上の機能を実行する方法は?
以下のスクリプトは、スローダウンロードをクリックし、クリック後に表示されるポップアップ広告を削除します。代わりに、最初のウィンドウをポップアップします無料ダウンロード、クリックの
は、私は私のスクリプトが$("#CountDownTimerContainer").show()
を実行しますが、それは何らかの理由でstartFreeDownload()
を実行しません
function() {
$(this).hide();
$("#CountDownTimerContainer").show();
startFreeDownload();
}
あるその第2のクリック機能を呼び出したいです。
ページにある
がどのように私はstartFreeDownload()
を呼び出すことができます。質問?
// ==UserScript==
// @name NitroFlare
// @namespace https://nitroflare.com/
// @description https://nitroflare.com/
// @include https://nitroflare.com/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// ==/UserScript==
function SkipId(objId){
var oId = document.getElementById(objId);
oId.click();
}
window.onload = function(){
SkipId('slow-download');
};
waitForKeyElements("div.superbox-wrapper", removeSuperbox);
function removeSuperbox() {
document.getElementById('superbox-wrapper').hide();
}
$("#CountDownTimerContainer").show();
startFreeDownload();
スーパーボックスは現在のスクリプトで削除されます。何とか 'startFreeDownload()'を呼び出す必要があります。 –
ちょうどタイミングの問題かもしれません。 '@grant none'を使っているので、' removeSuperbox'の中で 'jNode.hide();'の直後に 'startFreeDownload()'を追加してみてください。 –
それは役に立たなかった。スクリプトは 'startFreeDownload()'がページ上のものであり、私が(未だ)実装していない関数がスクリプト内にないことをどのように知っていますか? –