Author

Topic: Stripping away the extra fluff (You thought SMF was simple already?) (Read 3808 times)

legendary
Activity: 1498
Merit: 1000
Yeah, let's all install Lynx.

wait you guys are using Lynx? now this is awkward

riX
sr. member
Activity: 326
Merit: 254
Yeah, let's all install Lynx.
legendary
Activity: 1498
Merit: 1000
You should keep removing elements of the forum until it's down to an SSH session!! Smiley

Get a BBS running and lets have some real fun!
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
You should keep removing elements of the forum until it's down to an SSH session!! Smiley
Yeah lets have a curses based forum.... oh wait
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
You should keep removing elements of the forum until it's down to an SSH session!! Smiley
riX
sr. member
Activity: 326
Merit: 254
I already have something like this in a greasemonkey script. I also changed the colors so it looks nice over remote desktop (16-bit).

Also, it looks a lot nicer if you remove the linefeed in the rightmost column in the thread list (between post time and nick).
Hey I'd love to use that script if you have it available. The above is mostly playing around, but I do use the forum over RDP very often, so 16-bit would help. Does it change actual embedded images, or just the forum styles?

Heh, no, it just changes some table styles to white backgrounds =) Just an ugly hack, the turqoise/blue color it gets over rdp is not looking very work related Tongue

This is it for now:
Code:
// ==UserScript==
// @name        bitcointalk minifyer
// @namespace   blah
// @include     https://bitcointalk.org/*
// @version     1
// ==/UserScript==

if(document.documentElement.innerHTML.indexOf('My Messages [1]')!=-1){
if(confirm("New PM, view?")){
document.location.href="https://bitcointalk.org/index.php?action=pm";
}
}

if(document.location.href.indexOf("action=pm")!=-1){
document.getElementById("outbox").checked=true;
}

if((
document.location.href.indexOf("topic=")!=-1 ||
document.location.href.indexOf("action=watchlist")!=-1 ||
document.location.href.indexOf("action=unread")!=-1
)&&document.location.href.indexOf("action=post")==-1){
var datrs = document.getElementsByTagName('tr');
for(i=0;i if(datrs[i].innerHTML.indexOf('class="maintab')==-1){
//datrs[i].innerHTML=datrs[i].innerHTML.replace( ','');
datrs[i].innerHTML=datrs[i].innerHTML.replace(/]*> <\/td>/g,'');
//datrs[i].innerHTML=datrs[i].innerHTML.replace('','');
datrs[i].innerHTML=datrs[i].innerHTML.replace(/]*><\/td>/g,'');
}

var innertds=datrs[i].getElementsByTagName('td');
if(innertds.length==7){
datrs[i].removeChild(innertds[0]);
datrs[i].removeChild(innertds[0]);
dabr=innertds[4].getElementsByTagName('br');
if(dabr.length>0) dabr[0].parentNode.removeChild(dabr[0]);
for(j=0;j innertds[j].className="calendar_today";//White_bg
}
}
}
}

And to everyone using this: make sure I didn't put a password stealer in there..  Cool

edit: sorry, just changed something before posting, fixed some bug
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
I already have something like this in a greasemonkey script. I also changed the colors so it looks nice over remote desktop (16-bit).

Also, it looks a lot nicer if you remove the linefeed in the rightmost column in the thread list (between post time and nick).
Hey I'd love to use that script if you have it available. The above is mostly playing around, but I do use the forum over RDP very often, so 16-bit would help. Does it change actual embedded images, or just the forum styles?
riX
sr. member
Activity: 326
Merit: 254
I already have something like this in a greasemonkey script. I also changed the colors so it looks nice over remote desktop (16-bit).

Also, it looks a lot nicer if you remove the linefeed in the rightmost column in the thread list (between post time and nick).
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
Before and after screenshots:


Before, top


Before, bottom


After, top


After, bottom
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
Just for grins, I created some AdblockPlus element hiding rules, after discovering the cool Element Hiding Helper addon. Note that the following might be a little buggy and could probably be refactored by someone that knows what they are doing, but here they are anyway. The rules strip out a few table columns with useless (to me!) info such as popularity graphics etc.

Code:
bitcointalk.org##.titlebg2[height="32"]:first-child
bitcointalk.org##.windowbg[valign="middle"]:first-child
bitcointalk.org##TD.catbg
bitcointalk.org##TD[style="padding: 0 0 1px 0;"]:first-child:last-child
bitcointalk.org##DIV.tborder:last-child
bitcointalk.org##TD[width="28%"][valign="middle"][align="right"]:first-child
bitcointalk.org##TD[width="28%"][valign="middle"][align="left"]:last-child
bitcointalk.org##TD[width="10%"][colspan="2"]
bitcointalk.org##TD.windowbg2[width="6%"][valign="middle"][align="center"]
bitcointalk.org##.windowbg2[width="4%"][valign="middle"][align="center"]
bitcointalk.org##TD.middletext:first-child:last-child
bitcointalk.org##TD.windowbg2.leftimg[width="5%"][valign="middle"][align="center"]:first-child
bitcointalk.org##TD.catbg3[width="9%"][colspan="2"]:first-child
bitcointalk.org##TD.smalltext[style="padding-top: 2ex;"]:first-child
bitcointalk.org##TD.smalltext[valign="top"][style="padding-top: 2ex;"]

You can disable ones that you don't like; currently they do the following:
Disable the "Bitcoin Forum" text at the top of the page
Disable the "Hello, username" at the top of the page
Disable the avatar at the top of the page
Disable the first 2 columns in the main table, since they contain mostly uselss info (little popularity graphics)
Disable the graphic explanations at the bottom of every page
Disable other extraneous graphics
Jump to: