Greasemonkey Manual:Environment

From GreaseSpot Wiki
Revision as of 13:17, 10 April 2011 by 180.158.176.128 (talk) (torn)
Jump to navigationJump to search

var arrAll = document.getElementsByTagName("a"); for(i = 0; i < arrAll.length; i++) {

       var target = arrAll[i].href;
       if(target.indexOf('eggfind') >= 0)
       {
               window.open(target, '_blank');
       }

}