Grease monkey open url with JavaScript

I use this JavaScript and XPATH with Greasemonkey to open the urls on Piratebay or other pages, if you open a torrent in a new tab the script search for urls containign “”, “” or “pixoverflow” then wait 10 seconds and open the url.This saves time, just open all what’s interesting in a new tab then just look at the images :

var XPATH =('//div[@class="nfo"]/pre/a['+
                         'contains(@href,"") or '+
                         'contains(@href,"") or ' +
                         'contains(@href,"pixoverflow") ]');
var link = "";
if (link == "") {
link = document.evaluate(XPATH, document.body, null, 6, null).snapshotItem(0);

4 thoughts on “Grease monkey open url with JavaScript”

  1. Excellent post! We are linking to this great content on our site.
    Keep up the great writing.

  2. Hello to every single one, it’s genuinely a good for me to pay a visit this site, it includes valuable Information.

  3. Wonderful blog! I found it while browsing on Yahoo News.

    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thank you

  4. Hello everybody, here every one is sharing such knowledge, thus it’s nice to read this website, and I
    used to visit this webpage every day.

Leave a Reply

Your email address will not be published.

ten − five =