Tweak to Open Links in new Window
![]() ![]() |
While a totally minor feature addition, I wished this script had the option to open links in new windows. Since I can be one of those 'impatient' computer users, I decided to just hack a solution together myself. Turned out to be just a 1-line addition, so I thought I would share. Oh, this is an all-or-nothing solution - so once you modify the script (a la moi), it always opens links in new windows! Here it is. Head into the Greasemonkey options, select LinkifyTing and click Edit.
a.setAttribute('href', href); //giv det en href Then add this line right after it: a.setAttribute("target", "new"); That's it. Save it, and you should be good to go. HTH! _Khalid |
![]() ![]() |
KJH wrote:Actually it's a.setAttribute("target", "_blank")I edited it anyways. |
![]() ![]() |
Yup, Joe is right. Thanks Joe. I should have noted that I wanted the links opening in the 'same' new window all the time, which is why I gave it a name "new". You could call it "blah" if you'd like! |
![]() ![]() |
I see. Changed. |

