For a while now, I've been "minimizing" some parts of the forum since I don't speak German. In other words, I wouldn't go visit the German parts of the forum anyway and they're just in the way.
Since the German parts are first and take up quite some room, I decided to make a simple Greasemonkey script to hide chosen parts of the forum. That way, the parts you are not interested in at all, won't be shown!
All you have to do is edit the HideFora array to whatever it is you want to hide! ^^
I can imagine other users might like this too, so I thought I'd share it
Hope you enjoy!
Code:
// ==UserScript==
// @name SB-Innovation Hider
// @namespace SB-Innovation
// @description Hide parts of the SB-Innovation forum that you're not interested in.
// @include http://www.sb-innovation.de/
// ==/UserScript==
//Fora you want to hide.\\
//Allgemeines is 1, News = 2, Community = 3 and so on.\\
var HideFora = [1, 2, 3, 4, 5, 8];
//Don't edit below\\
HideFora = uniqueSort(HideFora);
var location = "/html/body/table/tbody/tr/td/div[2]/div/table/tbody/tr/td/div/div/div/";
for (var i = HideFora.length - 1; i >= 0; i--)
{
removeElement( location + "div[" + ( 5 + HideFora[i] ) + "]" );
removeElement( location + "table[" + ( 3 * HideFora[i] + 2 ) + "]" );
removeElement( location + "table[" + ( 3 * HideFora[i] + 1 ) + "]" );
removeElement( location + "table[" + ( 3 * HideFora[i] ) + "]" );
}
function removeElement(ElementXpath)
{
var alltags = document.evaluate(ElementXpath,document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
element = alltags.snapshotItem(0);
if (element)
element.parentNode.removeChild(element);
}
function uniqueSort(a)
{
var r = new Array();
o:for(var i = 0, n = a.length; i < n; i++)
{
for(var x = 0, y = r.length; x < y; x++)
{
if(r[x]==a[i]) continue o;
}
r[r.length] = a[i];
}
r.sort();
return r;
}
Bookmarks