

However, a script tag filter to block the specific inline script tag which contains the self-defacement JavaScript code allows a more targeted approach: prevent the undesirable inline JavaScript code from executing while keeping the desirable inline JavaScript code intact. Wholesale blocking of inline script tags does prevent the self-defacing, but possibly at the cost of disabling other possible useful functionalities on the page. The big advantage of this new filter is that it can fix at the source many of the anti-blocker workarounds used by some web sites.įor example, the web site at will resort to deface itself with ridiculous ads when the site detects that the user is using a blocker, and using EasyList + EasyList Germany does not work, as the images pulled by the page are randomly named, defeating pattern-based network filters and cosmetic filters as well. In the cat and mouse game between web sites and blockers, the new script tag filter is a welcomed new tool on the user side, to foil attempt by site to work around blockers. Also, be aware that selecting some of these extra lists may lead to higher likelihood of web site breakage - especially those lists which are normally used as hosts file. This filter means: for any web pages from the foo.example web site, remove all inline script tags which contains the string nuisanceCode. Yet, even after adding Fanboy's two extra lists, hpHosts’s Ad and tracking servers, uBlock Origin still has a lower memory footprint than other very popular blockers out there. Here is a example of a web page's HTML code with two inline script tags:įoo.example#^script:has-text(nuisanceCode) Inline script tags are those blocks of JavaScript code which are embedded in the main page: they can not be blocked from downloading unless the whole page itself is blocked, which is not very useful. Block all inline script tags embedded in a page at once.Block external script resources: these are taken care by network filtering.There are many ways to block script tags from executing in uBlock Origin: Through the use of the inline-script static filter option ( ||^$inline-script), or through the use of a dynamic filtering block rule for inline scripts. Not supported in Firefox's WebExtensions version of uBO when.Falling back on wholesale blocking of all inline script tags may work.Starring the related Chromium issue may help motivate Chromium devs to implement support.Not supported in Chromium-based browser.Script tag filters do not work in all browsers, due to browser API limitations: Read carefully if using uBO/webext on legacy Firefox.The removed element reappears when you reload the page.
Origin ublock software#
Software known to have uninstalled uBlock Origin.Doesn't uBlock Origin add overhead to page load?.Does uBlock Origin block ads or just hide them?.

