AddThis Plugin Remover

A script which removes the AddThis plugin.

目前为 2016-07-27 提交的版本。查看 最新版本

// ==UserScript==
// @name        AddThis Plugin Remover 
// @namespace   MegaByteATR
// @description A script which removes the AddThis plugin.
// @run-at      document-start
// @include     *
// @version     1
// @grant       none
// ==/UserScript==


    Element.prototype.remove = function() {
        this.parentElement.removeChild(this);
    }
    NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
        for(var i = this.length - 1; i >= 0; i--) {
            if(this[i] && this[i].parentElement) {
                this[i].parentElement.removeChild(this[i]);
            }
        }
    }
    
    document.querySelectorAll("script[src*=addthis]").remove();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址