+ Reply to Thread
Results 1 to 13 of 13

Thread: SB-Innovation Hider

  1. #1

    SB-Innovation Hider

    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;
    }
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  2. Who Said Thanks:

    Lucius (20.03.14) , Gapo (05.01.11) , Renk (28.06.10) , Blocker (24.06.10) , Vuze-Sbi (24.06.10) , Uninvited2611 (24.06.10) , anon (24.06.10) , C3PO (24.06.10) , slikrapid (24.06.10) , Instab (24.06.10) , cheatos (24.06.10) , Mihai (24.06.10)

  3. #2
    Advanced User Mihai's Avatar
    Join Date
    05.03.09
    Location
    If i tell you i must kill you
    P2P Client
    WaffleCheat v1.95 build 19928
    Posts
    1,509
    Activity Longevity
    0/20 18/20
    Today Posts
    0/5 sssss1509
    Nice.Maybe i can keep up with the english forum now
    Guess i'll have to go with firefox for sbi from now on
    Last edited by Mihai; 24.06.10 at 18:49.
    What does a scene tracker tell to a general tracker?
    You're so 5 minutes ago...



    Reply With QuoteReply With Quote
    Thanks

  4. Who Said Thanks:

    Sazzy (24.06.10)

  5. #3
    Quote Originally Posted by Mihai View Post
    Guess i'll have to go with firefox for sbi from now on
    Normally, it should work just fine in Chrome too. I'm not sure about Opera since I've heard it's quite annoying with scripts. It *might* work
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  6. #4
    Moderator
    Instab's Avatar
    Join Date
    17.09.09
    Posts
    6,661
    Activity Longevity
    4/20 17/20
    Today Posts
    0/5 sssss6661
    great add!
    however you can disable selected parts of the forum via usercp by default
    Your account has been disabled.
    Reply With QuoteReply With Quote
    Thanks

  7. #5
    Hmmmz? I have not seen anything like that in the User CP. Care to point me in the right direction please?
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  8. #6
    Moderator
    Instab's Avatar
    Join Date
    17.09.09
    Posts
    6,661
    Activity Longevity
    4/20 17/20
    Today Posts
    0/5 sssss6661
    Quote Originally Posted by Sazzy View Post
    Hmmmz? I have not seen anything like that in the User CP. Care to point me in the right direction please?
    usercp -> edit options (at the bottom)
    Your account has been disabled.
    Reply With QuoteReply With Quote
    Thanks

  9. Who Said Thanks:

    Sazzy (24.06.10)

  10. #7
    Oh. :( Damnit!
    Wasted time >: (
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  11. #8


    Join Date
    22.06.08
    Location
    astral planes
    P2P Client
    sbi finest
    Posts
    3,125
    Activity Longevity
    0/20 19/20
    Today Posts
    0/5 sssss3125
    not really, you earned some rep
    Reply With QuoteReply With Quote
    Thanks

  12. Who Said Thanks:

    Sazzy (24.06.10)

  13. #9
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,444
    Activity Longevity
    8/20 19/20
    Today Posts
    5/5 ssss39444
    As Instab said, you can already choose which subforums will or will not be disabled in the new posts list via your User CP.

    However, forums that have been created ever since we implemented that (for example, the German review section) can't be hidden from there due to a glitch, so your script still comes handy. Thanks for taking the time to write it!
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  14. Who Said Thanks:

    Instab (24.06.10) , Sazzy (24.06.10)

  15. #10
    Advanced User Blocker's Avatar
    Join Date
    11.03.09
    Location
    The Pirate Bay
    P2P Client
    VEM
    Posts
    1,620
    Activity Longevity
    6/20 18/20
    Today Posts
    0/5 sssss1620
    I can imagine other users might like this too, so I thought I'd share it
    Great work ,keep on

    Useful script by the way this option is in UserCP

    Maybe you could make a new greasemonkey script for something else,SB-I will change VBulletin version soon
    Reply With QuoteReply With Quote
    Thanks

  16. #11
    Quote Originally Posted by Blocker View Post
    Maybe you could make a new greasemonkey script for something else,SB-I will change VBulletin version soon
    Sure, we'll wait 'til then and see what's needed ^^
    Suggestions are of course welcome. If I have some spare time I'm willing to take a look at it

    *feels useful*
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  17. Who Said Thanks:

    Blocker (25.06.10)

  18. #12
    _rep Sassy
    I was thinking of something.Since it looks like you really know what you are doing maybe you can try making a custom theme for SBi
    Just like this guy made for FL?
    http://www.sb-innovation.de/showthre...e=3#post182474
    Reply With QuoteReply With Quote
    Thanks

  19. Who Said Thanks:

    Sazzy (25.06.10)

  20. #13
    I was thinking about doing that. It would take up some time, though. I'll keep you guys posted ^^
    g̺̗͙̺l̜̜i͖̦͇̙t͕̲̜c͇̮͕̺̩͎̰̜h͕̦̘
    Reply With QuoteReply With Quote
    Thanks

  21. Who Said Thanks:

    SBfreak (25.06.10)

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •