From 24436b5d408a7467c34354ea9158ed27ca819bc1 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 21 Jan 2016 09:02:16 -0500 Subject: [PATCH] `startsWith` not available prior to Chromium 41 --- assets/ublock/resources.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ublock/resources.txt b/assets/ublock/resources.txt index 1d395bd7b..47751e4b6 100644 --- a/assets/ublock/resources.txt +++ b/assets/ublock/resources.txt @@ -446,7 +446,7 @@ pornhub-popup-defuser.js application/javascript # https://news.ycombinator.com/item?id=10814913 forbes-defuser.js application/javascript (function() { - if ( !window.location.pathname.startsWith('/forbes/welcome/') ) { + if ( window.location.pathname.lastIndexOf('/forbes/welcome/', 0) !== 0 ) { return; } var noopfn = function() {