`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
1 changed files with 1 additions and 1 deletions

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