window.open Opens in New Tab

By 1212jtraceur Last update Jul 8, 2007 — Installed 219 times. Daily Installs: 4, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
Causes URIs opened with window.open to instead open in a new tab.
Recently Updated TopicsPosts
Archived Comments5

this script has 1 topic, 5 posts

This script has no reviews.

Does what the summary says, with one short line of code. Unfortunately, it uses unsafeWindow. I tried the alternative methods listed here: http://wiki.greasespot.net/UnsafeWindow , but they didn't work. I don't see how my use could be dangerous, though.

EDIT: Descriptor has kindly shown a way to do this with the browser. about:config > browser.link.open_newwindow = 3 > browser.link.open_newwindow.restriction = 0. I haven't tested this yet, so I'll leave the script (and this comment) here for now.

EDIT: The built-in way works great, but I'll leave the script up for those who don't know of the preferences.