QUOTE(Kazodos @ May. 7, 2007. 11:32 AM) [snapback]334779[/snapback]
Eh. Removing all the pictures is no fun >_> I have no problem scrolling vertically, and I almost never have to scroll horizontally. Soo... yeah, you might wanna remove the pictures, in your case >_>
(Link to GreaseMonkey)I'm writing the script. It should be ready by tonight.
edit: Done it. Works sweetly on the latest GreaseMonkey.
Source:
[spoiler]// ==UserScript==
// @name Smosh Image Remover
// @author anima
// @namespace
http://www.sebrenauld.info// @description Auto-hides all quoted images, and adds a button to un-hide them.
// @include
http://smosh.com/forums/index.php?showtopic=*// @include
http://www.smosh.com/forums/index.php?showtopic=*// ==/UserScript==
// Set all quoted images to hidden. BOOYAH!
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
function hideQuotedImgSIR() {
var totalQuotes = getElementsByClass("quotemain",document,"div");
var replacement = document.createElement("p");
for(i=0;i<totalQuotes.length;i++) {
var innerBalises = totalQuotes[i].getElementsByTagName("img");
for(j=0;j<innerBalises.length;j++) {
innerBalises[j].style.display="none";
}
}
}
function showQuotedImgSIR() {
var totalQuotes = getElementsByClass("quotemain",document,"div");
for(i=0;i<totalQuotes.length;i++) {
var innerBalises = totalQuotes[i].getElementsByTagName("img");
for(j=0;j<innerBalises.length;j++) {
innerBalises[j].style.display="block";
}
}
}
hideQuotedImgSIR();
// Create the button
GM_registerMenuCommand("Show images in post",showQuotedImgSIR,"s","accel","s");[/spoiler]
If you want to install the script, I've got it
there (SIR.user.js, 1637 bytes)