Taboola Ads Remover

A script which removes the annoying Taboola ads.

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name        Taboola Ads Remover
// @namespace   MegaByteTAR
// @description A script which removes the annoying Taboola ads.
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at      document-idle
// @include     *
// @version     1
// @grant       none
// ==/UserScript==


    this.$ = this.jQuery = jQuery.noConflict(true);
	
	var attr = ["class", "id"];
    var filter = ["Taboola_TOP_LEADERBOARD_AB", "taboola-above-article-thumbnails", "NATIVE_TABOOLA_ARTICLE", "Taboola_NATIVE_TABOOLA_ARTICLE", "taboola-below-article-thumbnails"];
    var link_wrapper = ["trc_rbox_container", "trc_wrapper", "trc_header", "videoCube", ]
	var link_filter = ["taboola.com", "taboolasyndication.com"];
    
    function check() {
	
		for(var a of attr) {
			for(var f of filter) $("["+a+"*="+f+"]").remove();
			for(var f of link_wrapper) for(var lf of link_wrapper) {
					var w = $("["+a+"*="+f+"]");
					if(w.find("[href*="+lf).length!=0) w.remove();
				}
		}
		
		setTimeout(check, 100);
	}
	
	check();