TRUSTe Blocker

disable annoying TRUSTe alerts

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         TRUSTe Blocker
// @namespace    http://scrumplex.net/
// @version      0.1
// @description  disable annoying TRUSTe alerts
// @author       Scrumplex
// @match        *
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var runner = function() {
        var box_overlays = document.getElementsByClassName("truste_box_overlay");
        var overlays = document.getElementsByClassName("truste_overlay");
        var changes = 0;

        for(var i = 0; i < box_overlays.length; i++) {
            var elem = box_overlays[i];
            elem.parentNode.removeChild(elem);
            changes++;
        }
        for(var i = 0; i < overlays.length; i++) {
            var elem = overlays[i];
            elem.parentNode.removeChild(elem);
            changes++;
        }
        if (changes >= 2) {
            clearInterval(interval);
        }
    };

    var interval = setInterval(runner, 100);
})();