LinksInNewTab

By Bruce Stockwell Last update Jul 18, 2007 — Installed 489 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 14 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Bruce Stockwell Script's Author

save the webpage as an html file and email it to me as bruce dot stockwell at gmail dot com.

 
MykeSpace User

Well its like a game that requires a user and pass id, it's http://torax.outwar.com.

heres the html that it would be extracting.

Attack!

I apreciate your help by the way.

 
Bruce Stockwell Script's Author

Can you post a link to the page so I can troubleshoot it?

 
MykeSpace User

Then I don't understand why I'm having problems with the script.

There are hyperlinks on the page to http://website.com/userid=[HASH VALUE] and in the sites I have http://website.com/userid=* but it doesn't open in a new tab, have any ideas?

 
Bruce Stockwell Script's Author

if your referring to the included pages option then:
E.g.
- http://*google* would refer to all Google domains like http://images.google.com

- http://www.google.com/* would not include the domain like http://images.google.com.

 
MykeSpace User

Ok sorry I'm bad at explaining, that comment was

Does it include Mypage.php* aswell as mypage.php/*
I'm new to Greasemonkey.

 
Bruce Stockwell Script's Author

my last comment did not display correctly.

I can modify elements too.

should have read:

I can modify img elements too.

 
Bruce Stockwell Script's Author

I created this script to help me with my quirky way of using google. I can modify elements too. I'll make that change in a couple minutes. I don't really understand your comment

And does it include ones without /'s before the *.

 
MykeSpace User

Ok thanks for your help!

 
Bruce Stockwell Script's Author

This is a very basic script. This is what is does at present.

1- Loops through all the anchor tags on the page.
2- Adds an onclick event handler that passes the url to a GM function for opening urls in a new tab.
3- Disables the default action for the anchor.

 
MykeSpace User

Thanks for replying, but I had some trouble with it. Does it work with images links? And does it include ones without /'s before the *.

E.g. website.com/phpid?=* instead of website.com/*

 
Bruce Stockwell Script's Author

All you need to do is navigate to tools > greasemonkey > manage user scripts. Select LinksInNewTab and add sites to the included pages.

 
MykeSpace User

Excellent, is there any way to modify this for other pages?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel