 |
05-28-2007, 02:53 AM
|
#1 (permalink)
|
|
OFP Officer
Join Date: Oct 2005
Posts: 10,281
Tournaments Joined: 0 Tournaments Won: 0
|
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.
|
|
|
05-28-2007, 04:19 AM
|
#2 (permalink)
|
Join Date: Sep 2006
Location: Broomfield, CO
Age: 27
Posts: 6,322
Tournaments Joined: 0 Tournaments Won: 0
|
Re: TidyUserCP
Shweeeeet....I've been hoping for something like this! +Rep for sure!
__________________
|TG-6th|Ferris Bueller
|
|
|
05-29-2007, 01:00 AM
|
#3 (permalink)
|
Join Date: Jan 2006
Location: United states, TN
Age: 37
Posts: 3,071
Tournaments Joined: 0 Tournaments Won: 0
|
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.
__________________
|TG-6th|Wimpinator
|
|
|
05-31-2007, 12:53 AM
|
#5 (permalink)
|
Join Date: May 2003
Location: Memphis, TN
Posts: 14,224
Tournaments Joined: 0 Tournaments Won: 0
|
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.
|
|
|
05-31-2007, 01:40 AM
|
#6 (permalink)
|
|
OFP Officer
Join Date: Oct 2005
Posts: 10,281
Tournaments Joined: 0 Tournaments Won: 0
|
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.
|
|
|
05-31-2007, 02:00 AM
|
#7 (permalink)
|
Join Date: May 2003
Location: Memphis, TN
Posts: 14,224
Tournaments Joined: 0 Tournaments Won: 0
|
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.
|
|
|
09-20-2007, 12:31 AM
|
#8 (permalink)
|
|
OFP Officer
Join Date: Oct 2005
Posts: 10,281
Tournaments Joined: 0 Tournaments Won: 0
|
Re: TidyUserCP
|
|
|
09-25-2007, 12:24 AM
|
#9 (permalink)
|
Join Date: Nov 2006
Location: DePaul University (Chicago)
Age: 23
Posts: 6,319
Tournaments Joined: 0 Tournaments Won: 0
|
Re: TidyUserCP
Nice. I like it.
__________________
WRT54GL v1.1 + Tomato 1.23 / Logitech MX1100 / Bamboo RSS
AA1-ZG5 (Ubuntu 9.04) / 1000HE / Wants mini-BeBook / Cowon D2 + S9
"I'd go get bent honestly!" - Vulcan to Trooper
"NOBODY wants to hear you breathe." - CingularDuality
"I kill myself most of the time. I don't stop for buildings..." - BeSiege
|
|
|
01-25-2008, 02:50 AM
|
#11 (permalink)
|
|
OFP Officer
Join Date: Oct 2005
Posts: 10,281
Tournaments Joined: 0 Tournaments Won: 0
|
Re: TidyUserCP
Quote:
Originally Posted by WhiskeySix
|
again
|
|
|
03-22-2008, 04:14 PM
|
#12 (permalink)
|
|
OFP Officer
Join Date: Oct 2005
Posts: 10,281
Tournaments Joined: 0 Tournaments Won: 0
|
Re: TidyUserCP
Updated with latest icon set. cleanusercontrolpanel.user.js
(Ikariam, Sins of a Solar Empire, IHS Barracks, etc.)
|
|
|
03-23-2008, 01:57 PM
|
#13 (permalink)
|
Join Date: Sep 2006
Location: Canada
Age: 24
Posts: 917
Tournaments Joined: 0 Tournaments Won: 0
|
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
|
|
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|