aremesh / TradingView_RemoveAds

// ==UserScript==
// @name         TradingView_RemoveAds
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.tradingview.com/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(5000,"RemoveAds()")
    // Your code here...
})();

function DetectAjaxChanges() {
    var _send = XMLHttpRequest.prototype.send;
    XMLHttpRequest.prototype.send = function () {

        /* Wrap onreadystaechange callback */
        var callback = this.onreadystatechange;
        this.onreadystatechange = function () {
            if (this.readyState == 4) {

                /* We are in response; do something,
           like logging or anything you want */
            }
            callback.apply(this, arguments);
            RemoveAds()
        }

        _send.apply(this, arguments);

    }
}
function RemoveAds(){

    $("#tv-toasts").html('');
}