agentlion All American 13936 Posts user info edit post |
OK, so by now most of you should have heard of GreaseMonkey, the FireFox extension that allows you to modify any webpage based on simple user scripts - http://greasemonkey.mozdev.org/
The FireFox Extensions page already has a list of scripts people are using, and here is an exhaustive list here - http://dunck.us/collab/GreaseMonkeyUserScripts I'll also point out a tool called Platypus, which is kind of a WYSIWYG script generator - http://platypus.mozdev.org/
anyway - the main point of this thread is to introduce the first (that i'm aware of) TWW specific GreaseMonkey scripts! Lets see what other ideas and scripts we can get generated.
Here are two I've written so far. Please install them, and feel free to expand on them and add new functionality. I'm starting a list of mine here - http://thalions.com/greasemonkey/
TWW@Work (inspired by dannydigtl) - This is a script that allows you to easily modify the site CSS and logos so your screen is not glaring red all the time, making your cubicle-dweller neighbors think you're slacking all day! It is currently geared towards my company, which unfortunately makes it look a lot like partyheels.com (there is a dummy logo inserted by default). Perhaps we can get a list of company specific variations - http://thalions.com/greasemonkey/twwatwork.user.js
TWW Clean Menu - Simply removed the links in the main menu bar you don't want to use. Edit the script to comment/uncomment the lines to hide/unhide the main menu bar links - http://thalions.com/greasemonkey/twwcleanmenu.user.js
that's all for now. I got a couple others i'm gonna get started on.
edit - ok, appears to be a bug in the TWW@Work script already. If you install it, please describe here what you see. This is what it should do (and what it does on my computer, of course) - replace the Wolf Head and TWW logo with another picture, replace the New and Old images with blue New and Old icons, and make everything blue instead of red. If any of that doesn't work for you, post what does work, and your configuration - FF version, GM version, and what URL you use (brentroad.com, http://www.brentroad.com, thewolfweb.com, http://www.thewolfweb.com, etc).
[Edited on June 22, 2005 at 9:37 PM. Reason : bug] 6/22/2005 9:18:43 PM |
agentlion All American 13936 Posts user info edit post |
ok, i just discovered that since I used Platypus to generate some of the scripts, you have to have the Platypus extension installed as well to make the scripts work. I will work on versions that don't make Platypus API calls, but for now, you have to have Platypus installed for the images and link removal parts to work (although the CSS styles still work). 6/22/2005 9:50:46 PM |
bigben1024 All American 7167 Posts user info edit post |
how is this going to make it easier to find niche porn? 6/23/2005 12:06:22 AM |
NCstateBen All American 3045 Posts user info edit post |
I'm writing one now to make all of these:
Look as they should:
Will also try to write one to add a [/user] button to the posting toolbar, and another to ignore every post by salisburyboy
Oh, and how about autoresizing all big images so that theres no side scrolling. Also auto break long links so that this doesnt happen:
http://www.thisisreallyannoying.com/894302849038294089302894302849032894083
29048930284930284902384903284903284903289403289408239084923084930284903284093280948230948230984
[Edited on June 23, 2005 at 12:17 AM. Reason : ]
[Edited on June 23, 2005 at 12:20 AM. Reason : ]
[Edited on June 23, 2005 at 7:56 AM. Reason : mod edit - fixed side scrolling "link"] 6/23/2005 12:13:41 AM |
dFshadow All American 9507 Posts user info edit post |
this thread has officially gone to shit until page 2.
fuck you NCstateBen
wtf is it with your fucking morons and side scrolling 6/23/2005 12:47:59 AM |
nintool All American 2623 Posts user info edit post |
yeah, don't just break up long links though...long text in general 6/23/2005 12:51:12 AM |
NCstateBen All American 3045 Posts user info edit post |
Ummm...I was discussing writting a script to fix that. It will probably be ready before this thead gets to page 2.
So fo some reason the Platypus extension isn't working right on my system. The toolbar doesnt seem to exist for it, and its not functional at all without it. 6/23/2005 1:06:10 AM |
agentlion All American 13936 Posts user info edit post |
i've not been too happy with the Platypus extension. It's difficult to use with non-intuitive controls (actually, it has very "vi" like controls). Plus, I didn't realize that you have to have Platypus installed to run scripts created with Platypus.
here's a list of GM scripts I'm working on or would like to see - in side a post, under the user name on the left, add links to directly send the user a PM and go to their gallery - a "Insert User" button in the toolbar. Make it configurable so that it can either pop-up a JS prompt like "insert image" doesn, or it just inserts the [user] tags directly, like "insert quote" does. - in the photo gallery, create a direct link to the actual picture (i.e. URL of .jpg file) under each thumbnail - configurable "hide user posts" where you can select users to ignore. (and maybe select particular posts to ignore to avoid, e.g. long URLs or pictures you don't want to see)6/23/2005 7:47:51 AM |
dFshadow All American 9507 Posts user info edit post |
thank God for mod edits haha
so now then, let's see if we can't help with this 6/23/2005 10:32:00 AM |
NCstateBen All American 3045 Posts user info edit post |
Damn it seems I suck at writing javascripts. I don't know any of the functions that are available to help reformat parts of the page. So far my script to replace linked images with the real image doesn't work at all. 6/23/2005 1:38:10 PM |
nintool All American 2623 Posts user info edit post |
maybe http://www.w3.org/DOM/DOMTR will help?
i'm sure there's a function somewhere to check the length of a string...you just need to insert a <br /> or something at a designated length within a loop
[Edited on June 23, 2005 at 1:50 PM. Reason : ] 6/23/2005 1:47:26 PM |
dFshadow All American 9507 Posts user info edit post |
^^ there's already an extension that does almost that same thing. i think it was google customize but it was buggy and did it for all sites like tww too
but i had to get rid of it to install greasemonkey
maybe you can hack your way through that? |