Bitcoin Forum
December 12, 2017, 01:03:57 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Stripping away the extra fluff (You thought SMF was simple already?)  (Read 3662 times)
rjk
Sr. Member
****
Offline Offline

Activity: 448


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!
1513040637
Hero Member
*
Offline Offline

Posts: 1513040637

View Profile Personal Message (Offline)

Ignore
1513040637
Reply with quote  #2

1513040637
Report to moderator
1513040637
Hero Member
*
Offline Offline

Posts: 1513040637

View Profile Personal Message (Offline)

Ignore
1513040637
Reply with quote  #2

1513040637
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513040637
Hero Member
*
Offline Offline

Posts: 1513040637

View Profile Personal Message (Offline)

Ignore
1513040637
Reply with quote  #2

1513040637
Report to moderator
rjk
Sr. Member
****
Offline Offline

Activity: 448


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!
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
August 01, 2012, 06:26:44 PM
 #3

Just added looking good

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
riX
Sr. Member
****
Offline Offline

Activity: 328



View Profile
August 02, 2012, 09:08:59 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).

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

PGP key: 0x9F31802C79642F25
rjk
Sr. Member
****
Offline Offline

Activity: 448


1ngldh


View Profile
August 02, 2012, 09:25:20 PM
 #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?

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: 328



View Profile
August 02, 2012, 10:59:36 PM
 #6

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: 1162


www.bitcointrading.com


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

You should keep removing elements of the forum until it's down to an SSH session!! Smiley

rjk
Sr. Member
****
Offline Offline

Activity: 448


1ngldh


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

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: 1246


Java, PHP, HTML/CSS Programmer for Hire!


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

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!

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
riX
Sr. Member
****
Offline Offline

Activity: 328



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

Yeah, let's all install Lynx.

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

PGP key: 0x9F31802C79642F25
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


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

Yeah, let's all install Lynx.

wait you guys are using Lynx? now this is awkward


Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!