keepcalmandbelogical / mouse events ad killer

// ==UserScript==
// @name         mouse events ad killer
// @author       keepcalmandbelogical
// @description  Disables this mouse events listeners: click, mousedown, mouseup, contextmenu, touchstart. Also disables peer connections. Script only valid for websites with href anchors for navigation
// @version      0.2.6
// @include      http://*divxatope*.com*
// @include      http://*newpct*.com*
// @include      http://*elitetorrent.net*
// @include      http://*tumejortorrent.com*
// @include      http://*descargas2020.com*
// @grant        none
// @run-at       document-start
// @downloadURL  https://openuserjs.org/install/keepcalmandbelogical/mouse_events_ad_killer.user.js
// @supportURL   https://openuserjs.org/scripts/keepcalmandbelogical/mouse_events_ad_killer/issues
// @license      MIT
// ==/UserScript==
/* jshint -W097 */

(function() {

try { Window.prototype.RTCPeerConnection=null; } catch(e) {}
try { Window.prototype.mozRTCPeerConnection=null; } catch(e) {}
try { Window.prototype.webkitRTCPeerConnection=null; } catch(e) {}
try { window.RTCPeerConnection=null; } catch(e) {}
try { window.mozRTCPeerConnection=null; } catch(e) {}
try { window.webkitRTCPeerConnection=null; } catch(e) {}

Window.prototype.addEventListener=(function() {
    var f=Window.prototype.addEventListener;
    return function(type,handler) {
        switch(type.toLowerCase())
        {
            case "click":
            case "mousedown":
            case "mouseup":
            case "touchstart":
            case "contextmenu":
                break;
            default:
                f.apply(this,arguments);
                break;
        }
    };
})();
window.addEventListener=Window.prototype.addEventListener;

HTMLDocument.prototype.addEventListener=(function() {
    var f=HTMLDocument.prototype.addEventListener;
    return function(type,handler) {
        switch(type.toLowerCase())
        {
            case "click":
            case "mousedown":
            case "mouseup":
            case "touchstart":
            case "contextmenu":
                break;
            default:
                f.apply(this,arguments);
                break;
        }
    };
})();
document.addEventListener=HTMLDocument.prototype.addEventListener;

Element.prototype.addEventListener=(function() {
    var f=Element.prototype.addEventListener;
    return function(type,handler) {
        switch(type.toLowerCase())
        {
            case "click":
            case "mousedown":
            case "mouseup":
            case "touchstart":
            case "contextmenu":
                break;
            default:
                f.apply(this,arguments);
                break;
        }
    };
})();

})();