1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

startsWith not available prior to Chromium 41

This commit is contained in:
gorhill 2016-01-21 09:02:16 -05:00
parent 829b7df86e
commit 24436b5d40

View File

@ -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() {