Skip Amazon Prime Video Ads

This script skips primevideo ADS

< 腳本Skip Amazon Prime Video Ads的回應

評論:普通 - 腳本能使用,但有一些問題

dgw
§
發表於:2021-12-20

I have tweaked this to cancel its interval function once the skip button has been clicked, to remove any background performance impact once the main video content has started.

(function() {
    'use strict';
    let handlerID = setInterval(
        function(){
            if(document.querySelectorAll('.adSkipButton.skippable').length){
                document.querySelector('.adSkipButton.skippable').click();
                clearInterval(handlerID);
            }
        }
        ,100);
})();

發表回覆

登入以回覆