NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name taucher.net - Vorschau für Anzeigebilder und öffnen in neuem Fenster // @description Ändert die Links zu Anzeigebildern, so dass sie in neuem Fenster geöffnet werden und fügt kleine Vorschauen ein // @namespace http://andreas.anvame.net/ // @author Andreas V. Meier // @license CC BY-NC-SA 3.0; https://creativecommons.org/licenses/by-nc-sa/3.0/ // @version 2 // @date 2015-07-26 // @match http://www.taucher.net/anzeige.html // ==/UserScript== (function () { urlarray = document.evaluate( "//a[starts-with(@href, 'javascript:openWindow')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for ( i = 0; i < urlarray.snapshotLength; i++ ) { link = urlarray.snapshotItem(i); link.href = link.href.replace("javascript:openWindow('", "").replace("','600','400')",""); link.target = "_new"; img = document.createElement("img"); img.src = link.href; img.height = 120; anzeigetext = null if ( link.nextSibling.nextSibling.nextSibling.nextSibling != null && link.nextSibling.nextSibling.nextSibling.nextSibling.nodeName == "A" ) { anzeigetext = link.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild; } else { anzeigetext = link.nextSibling.nextSibling.nextSibling.firstChild; } leerzeile = anzeigetext.nextSibling.nextSibling.nextSibling; leerzeile.parentNode.insertBefore(img, leerzeile); leerzeile.parentNode.insertBefore(document.createElement("br"), leerzeile); } })();