Help Hiding a Forum with JavaScript Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    Help Hiding a Forum with JavaScript

    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Help Hiding a Forum with JavaScript Empty Help Hiding a Forum with JavaScript

    Post by FrOsTyXi January 2nd 2015, 7:43 pm

    Hello, Can someone help me hide a forum with JS?

    Here is the code i have but it's not hiding it anymore.

    Code:
    $(function(){
      // hides the status update topic on forum page
    $('img[src="hidethis.png"]').closest('.main-content').prev().remove();
    $('img[src="hidethis.png"]').closest('.main-content').remove();
    if(location.href.match('status-updates')){
    alert("You Shall Not Pass!!!!");
      location.href="/forum";
    };
    });

    punbb

    Forum Link: TPSN

    Thank you kindly for the help!
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Help Hiding a Forum with JavaScript Empty Re: Help Hiding a Forum with JavaScript

    Post by _Twisted_Mods_ January 2nd 2015, 9:10 pm

    if u give me acp again i can look as see y its not working
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Help Hiding a Forum with JavaScript Empty Re: Help Hiding a Forum with JavaScript

    Post by FrOsTyXi January 2nd 2015, 9:20 pm

    Real weird cleared forum cookies and it's fine weird right before then a color canger i had installed was active and i deleted that few days ago.