Skip to content
View in the app

A better way to browse. Learn more.

www.Head-Case.org

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Use greasemonkey to remove head-fi sidebar?

Featured Replies

They're using JoeRotate javascript, according to their code.

I'm not really a coder, but you could try being one of "those guys" that disable javascript on your browser globally. Or look for a javascript hack.

But if you stay logged in, you can just minimize all the stupid side windows they have and they remain in that state until you delete cookies. Its easy enough, that its too much hassle to seek out anything, imho.

That's only on the home page.

The only link I really stay under is the "New Post" link, unless I search for something.

And you can't minimize that.

http://img233.imageshack.us/img233/2748/lamemv0.jpg

And btw, I saw the code they used for it, and it isn't Java: just basic html tables.

I'm going to research some more and play around with different things. I have a basic understanding of html, so hopefully it wont be too hard. If I find a solution, I'll be sure to share the goodness.

CanJam ends 1 week from tomorrow. Then it goes back to normal (ads on right). So having a little patience is probably the best solution now.

I just downloaded greasemonkey a few mins ago. Try the below script I just vomited out, with scope: http://www.head-fi.org/forums/*

Works for me. Gets rid of a couple of those top-horizontal banners too. It's an awful hack but head-fi doesn't id/name many elements for latching on to. They do like to to lots of <font> tags, though. - nice. ::)

I did notice the TTVJ sub-forum gives a JS error w/ this script because one of head-fi's startup scripts depends on one of those removed elements...let it choke...not a big deal to me.

// ==UserScript==

// @name Kill Head-fi

// @namespace mdu

// @description remove annoying sidebar

// @include http://www.head-fi.org/forums/

// ==/UserScript==

// get rid of annoying top ad banners:

var pagenavMenuId = "pagenav_menu";

try

{

var pageNavMenu = document.getElementById(pagenavMenuId);

var pageNavMenuParent = pageNavMenu.parentNode;

var foundPageNavMenu = false;

var numTargetElements = 2; // get rid of the first 2 tables after the pageNavMenu element

var targetElements = [];

for (var i=0; i < pageNavMenuParent.childNodes.length; i++)

{

var thisElement = pageNavMenuParent.childNodes[ i ];

if (!foundPageNavMenu && thisElement.id == pagenavMenuId)

{

foundPageNavMenu = true;

}

else if (foundPageNavMenu && thisElement.tagName && thisElement.tagName.toLowerCase() == "table")

{

targetElements.push(thisElement);

if (targetElements.length == numTargetElements)

{

break;

}

}

}

for (var i=0; i < targetElements.length; i++)

{

pageNavMenuParent.removeChild(targetElements[ i ]);

}

}

catch (ignore)

{;}

// get rid of annoying sidebar:

var tds = document.getElementsByTagName('td');

for (var i in tds)

{

var td = tds[ i ];

if (td && td.width == "1%" && td.style.paddingLeft == "10px")

{

td.parentNode.removeChild(td);

}

}

hf.png

decided to get rid of some of the sponsors forums too while i was at it (never read them)

Thanks for witting that mulveling, it works well and I got it to work for everything I clicked on.

Also thanks for the program dc; i'll look into it some more for other sites I don't like the way they look :)

and @aardvark sandwich

I don't think you understood which sidebar I was talking about. See my seconded post for clarification if you care any.

Maybe you can use it to get IE7 to get my spoiler tags to work correctly in IE7.

Yeah, probably not so much...

Dude you have like 9 unread messages popular guy huh?

No, just disorganized & selectively lazy ;D

Maybe I should also use greasemonkey to purge such reminders of my laziness...

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.