fxforumnewtab.user.js
Gepostete Links werden in einem neuen Tab geöffnet.// ==UserScript== // @name FxForumNewTab // @namespace http://openuserjs.org/users/ardiman // @description Opens posted links in new tabs. // @description:de-DE Öffnet Links in Beiträgen im neuen Tab. // @grant none // @homepage /ardiman/userscripts/tree/master/fxforumnewtab // @icon https://raw.githubusercontent.com/ardiman/userscripts/master/scriptlogo.gif // @include http://www.camp-firefox.de/forum/* // @license CC BY-NC-SA 3.0; https://creativecommons.org/licenses/by-nc-sa/3.0/ // @supportURL /ardiman/userscripts/issues // @version 1.0.5 // @date 2014-11-21 // ==/UserScript== var res = document.evaluate("//a[@class='postlink-local']|//a[@class='postlink']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE , null); for(var i = 0; i < res.snapshotLength; i++) { var elem = res.snapshotItem(i); elem.target = "_blank"; }