Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 14 of 14
Discussion: General Forums / Hardware & Software Discussion - TidyUserCP - Inspired by Wyzcrak's Search Results Legend and One Line Results scripts, I decided to dive
  1. #1

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    TidyUserCP

    Inspired by Wyzcrak's Search Results Legend and One Line Results scripts, I decided to dive into DOM/Javascript and take a whack at tidying up the User Control Panel. There are a few more things I'd like to clean up, but this version hits most of the major things:
    • Reduces Subscribed Threads table from three lines of text per thread to one line of text per thread.
    • Adds an icon representing the forum of each subscribed thread
    • Adds a link to the parent forum of each subscribed thread (by clicking the icon).
    • Adds Unsubscribe from thread/forum buttons at right of each subscribed thread/forum.
    • Deletes icon and replaces it with more a larger, more intuitive version.
    • Reduces Subscribed Forums table from three lines to two.
    • Adds mouse-over pop-up text to most buttons/links.



    Before:


    After:


    Once you have Firefox and GreaseMonkey installed, install/enable this script simply by clicking here: tidyusercp.user.js


    Comments, questions, suggestions (and bug reports ) welcome!
    Last edited by WhiskeySix; 05-28-2007 at 03:23 AM.

    |TG-12th|WhiskeySix

  2.  
  3. #2

    Ferris Bueller's Avatar

    Join Date
    Sep 2006
    Location
    1123, 6536, 5321
    Age
    29
    Posts
    9,241

    Re: TidyUserCP

    Shweeeeet....I've been hoping for something like this! +Rep for sure!

  4.  
  5. #3


    Join Date
    Jan 2006
    Location
    United states, TN
    Age
    39
    Posts
    3,072

    Re: TidyUserCP

    Installed. Very cool work Whiskey. Interestingly the script only compresses the subscribed forums section if there is a thread subscribed as well. I also didn't know that you could subscribe to an entire forum until I saw your screen shot.
    Retired 6th DB

  6.  

     
  7. #4

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: TidyUserCP

    Made several bug-fixes and improvements in this updated version: cleanusercontrolpanel.v01.user.js.

    Preview: with / without

    |TG-12th|WhiskeySix

  8.  
  9. #5

    Wyzcrak's Avatar

    Join Date
    May 2003
    Location
    Memphis, TN
    Posts
    14,267

    Re: TidyUserCP

    This is so fun to see. Whiskey, I've not spent much time on this stuff since Evan was born (Nov), but we're starting to see more and more pre-11PM bedtimes, and I'm ready to spend some more time working on GM scripts for us.

    Is it true that the scripts run in sequence as you dictate in your 'Manage User Scripts' window?

    I've got this idea to map out certain pages to "id" elements of interest within the markup. The idea is that all other scripts use these "IDs" (which vbulletin doesn't provide) when referencing stuff on the page.

    This way, when Apo changes the site, we need only make corrections to the "TGDOM" (or whatever) reference userscript.

    Make sense?
    Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup

    Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Zephyr: Apophis is clearly a highly sophisticated self-aware AI construct that runs on a highly modified toaster oven in Wyzcrak's basement.

  10.  
  11. #6

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: TidyUserCP

    Hmm.. not sure I follow exactly... what do you mean by "map out certain pages to "id" elements"?

    The main problem I've come across is that not all objects have unique ID's. Only some of the major containers have id's, such as the "collapseobj_usercp_forums" and 'collapseobj_usercp_subthreads' tables.

    Are you suggesting we have a GM script (which runs before all others) that goes through and assigns ID's to objects? If so, it's a cool idea. Subsequent scripts could be much simpler if standardized 'street signs' are put up in each page.

    |TG-12th|WhiskeySix

  12.  

     
  13. #7

    Wyzcrak's Avatar

    Join Date
    May 2003
    Location
    Memphis, TN
    Posts
    14,267

    Re: TidyUserCP

    That's exactly what I'm suggesting. Elements could be given IDs (e.g. 'tg_topnavbar_MembersList', 'tg_Logout_link', etc -- these are horrible examples.. there's got to be a solid naming convention to cover the entire site.. but you get the idea) we use in other scripts.

    Again, though, this idea is key on scripts running sequentially, which I've yet to test/be told.
    Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup

    Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Zephyr: Apophis is clearly a highly sophisticated self-aware AI construct that runs on a highly modified toaster oven in Wyzcrak's basement.

  14.  
  15. #8

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    |TG-12th|WhiskeySix

  16.  
  17. #9


    Acreo Aeneas's Avatar

    Join Date
    Nov 2006
    Location
    DePaul University (Chicago)
    Age
    26
    Posts
    8,205
    Blog Entries
    19

    Re: TidyUserCP

    Nice. I like it.
    Acreo Aeneas
    Content Development Team
    Technology Relations Manager



    Former 9th IHS Member. Long live the mobile infantry!
    Novice Audiophile, Technology Enthusiast

    "Arrrrgh! This waiting for BF3's beta is driving me up a wall!" - Acreo Aeneas

  18.  

     
  19. #10

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: TidyUserCP

    Updated with latest icon set. cleanusercontrolpanel.user.js

    |TG-12th|WhiskeySix

  20.  
  21. #11

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: TidyUserCP

    Quote Originally Posted by WhiskeySix View Post
    Updated with latest icon set. cleanusercontrolpanel.user.js
    again

    |TG-12th|WhiskeySix

  22.  
  23. #12

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: TidyUserCP

    Updated with latest icon set. cleanusercontrolpanel.user.js

    (Ikariam, Sins of a Solar Empire, IHS Barracks, etc.)

    |TG-12th|WhiskeySix

  24.  

     
  25. #13

    ZaBoo's Avatar

    Join Date
    Sep 2006
    Location
    Canada
    Age
    26
    Posts
    1,349

    Re: TidyUserCP

    Guys, haven't personally used Greasemonkey but am very involved in web application development, and "web 2.0". If your having problems selecting certain elements you should look into a javascript framework such as jQuery. It provides many ways to select elements by css, positioning, etc. Could probably save you some time, and get much more functionality - at the cost of a few extra kb download.

    http://jquery.com/
    http://docs.jquery.com/Selectors
    http://joanpiedra.com/jquery/greasemonkey/

    Cheers,
    ZaBoo

  26.  
  27. #14

    CingularDuality's Avatar

    Join Date
    May 2003
    Location
    Dallas/Ft. Worth area of Texas, USA
    Age
    37
    Posts
    18,761

    Re: TidyUserCP

    Bump for when the dust settles...

  28.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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


  
 

Back to top