4chanImageTabber

By Dustfinger Last update Aug 19, 2009 — Installed 995 times.

Update for new site html

in
Subscribe to Update for new site html 1 post, 1 voice

crabsdf Scriptwright
// ==UserScript== // @name 4chanImageTabberz // @namespace Dustfingerz // @description Opens each image in a topic in a new tabz // @include http://*.4chan.org/*/res/* // ==/UserScript== var newDiv = document.createElement('div'); newDiv.setAttribute('id','NEW_DIV'); var images = document.getElementsByTagName('img'); unsafeWindow.openTabs = function() { for (var i = 0; i < images.length; i++) { var temp1 = images[i].src.split('/'); var temp2 = temp1[temp1.length-1].split('.'); var temp3 = temp2[0].split('s'); if (temp3[0]*1 > 0){ if (images[i].src.indexOf('dontblockthis') == -1) { GM_openInTab(images[i].parentNode.href); } } } } newDiv.innerHTML = '
Open All Images'; var formNode = document.getElementsByTagName('form')[0]; formNode.parentNode.insertBefore(newDiv, formNode);
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