NotDS chess.com ad killer

11/16/2020 - kills chess.com ads, older downloadable scripts are failing to do so it seems.

当前为 2020-11-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         NotDS chess.com ad killer
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  11/16/2020 - kills chess.com ads, older downloadable scripts are failing to do so it seems.
// @author       You
// @match        https://www.chess.com/game/*
// @match        http://www.chess.com/game/*
// ==/UserScript==

 var myVar = setInterval(myTimer, 1000);

function myFunction() {

    document.body.getElementsByTagName("iframe")[0].hidden = true;

}


function myTimer() {
    document.body.getElementsByTagName("iframe")[0].hidden = true;
}


function myStopFunction() {
  clearInterval(myVar);
}

(function() {
    'use strict';

    window.addEventListener('load', function() {
    console.log('All assets are loaded');
        document.body.getElementsByTagName("iframe")[0].addEventListener("change", myFunction);
    });

})();