Bitcoin Forum
May 04, 2024, 09:52:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Stripping away the extra fluff (You thought SMF was simple already?)  (Read 3773 times)
rjk (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
August 01, 2012, 03:58:37 PM
 #1

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

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
1714816369
Hero Member
*
Offline Offline

Posts: 1714816369

View Profile Personal Message (Offline)

Ignore
1714816369
Reply with quote  #2

1714816369
Report to moderator
1714816369
Hero Member
*
Offline Offline

Posts: 1714816369

View Profile Personal Message (Offline)

Ignore
1714816369
Reply with quote  #2

1714816369
Report to moderator
1714816369
Hero Member
*
Offline Offline

Posts: 1714816369

View Profile Personal Message (Offline)

Ignore
1714816369
Reply with quote  #2

1714816369
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714816369
Hero Member
*
Offline Offline

Posts: 1714816369

View Profile Personal Message (Offline)

Ignore
1714816369
Reply with quote  #2

1714816369
Report to moderator
1714816369
Hero Member
*
Offline Offline

Posts: 1714816369

View Profile Personal Message (Offline)

Ignore
1714816369
Reply with quote  #2

1714816369
Report to moderator
rjk (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
August 01, 2012, 04:46:05 PM
 #2

Before and after screenshots:


Before, top


Before, bottom


After, top


After, bottom

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
riX
Sr. Member
****
Offline Offline

Activity: 326
Merit: 252



View Profile
August 02, 2012, 09:08:59 PM
 #3

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).

Sorry, I can't help you with your lost password.

PGP key: 0x9F31802C79642F25
rjk (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
August 02, 2012, 09:25:20 PM
 #4

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?

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
riX
Sr. Member
****
Offline Offline

Activity: 326
Merit: 252



View Profile
August 02, 2012, 10:59:36 PM
Last edit: August 03, 2012, 10:27:31 AM by riX
 #5

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('<a href="https://bitcointalk.org/index.php?action=pm">My Messages [<strong>1</strong>]</a>')!=-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<datrs.length;i++){
if(datrs[i].innerHTML.indexOf('class="maintab')==-1){
//datrs[i].innerHTML=datrs[i].innerHTML.replace(<td colspan="2" width="10%">&nbsp;</td>','');
datrs[i].innerHTML=datrs[i].innerHTML.replace(/<td[^>]*>&nbsp;<\/td>/g,'');
//datrs[i].innerHTML=datrs[i].innerHTML.replace('<td colspan="2" class="catbg3" width="9%"></td>','');
datrs[i].innerHTML=datrs[i].innerHTML.replace(/<td[^>]*><\/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.length;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

Sorry, I can't help you with your lost password.

PGP key: 0x9F31802C79642F25
mc_lovin
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


www.bitcointrading.com


View Profile WWW
August 03, 2012, 09:59:06 PM
 #6

You should keep removing elements of the forum until it's down to an SSH session!! Smiley
rjk (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
August 03, 2012, 10:00:41 PM
 #7

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

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
August 03, 2012, 11:23:46 PM
 #8

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!
riX
Sr. Member
****
Offline Offline

Activity: 326
Merit: 252



View Profile
August 04, 2012, 11:57:55 AM
 #9

Yeah, let's all install Lynx.

Sorry, I can't help you with your lost password.

PGP key: 0x9F31802C79642F25
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
August 04, 2012, 05:13:15 PM
 #10

Yeah, let's all install Lynx.

wait you guys are using Lynx? now this is awkward

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!