Author Topic: [Code] Hide Tabs V3  (Read 373 times)

0 Members and 0 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
[Code] Hide Tabs V3
« on: January 04, 2015, 01:02:00 am »
Description: Hides any tabs you want.

This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]
<script>var hideTabs=["tabname1","tabname2"];for(i=0;i<hideTabs.length;i++)$("#menu_nav").children("li").children("a").children("span").each(function(){$(this).text().trim().toLowerCase()==hideTabs[i].toLowerCase()&&$(this).remove()});</script>
Editing Instructions: Modify tabname1 and tabname2 inside the hideTabs array to the name of the tab you want to hide. You may hide more by adding a comma followed by a pair of quotation marks with the tab name inside of them.

Spoiler (hover to show)
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile
Re: [Code] Hide Tabs V3
« Reply #1 on: January 04, 2015, 01:07:59 am »
Very complex but efficient.
I was trying to figure out a way to do that, but I knew I wouldn't be the guy.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1340 Views
Last post August 28, 2014, 04:47:47 pm
by outlaw16151
0 Replies
634 Views
Last post May 28, 2012, 12:12:15 am
by aIURbliS
8 Replies
2630 Views
Last post January 03, 2015, 11:48:22 pm
by CyanProductions
0 Replies
156 Views
Last post November 29, 2013, 02:44:36 am
by Sara50840
0 Replies
372 Views
Last post January 04, 2015, 12:14:12 am
by CyanProductions