I’ve been called a greasy thug, too. It never stops hurting. So here’s what we’re gonna do: We’re gonna grease ourselves up real good and trash that place with a baseball bat. – Homer
Fact: GreasyThug will make all of your wildest dreams come true.
- Built in jQuery functionality.
- Google Gears included.
- A persistent command history across page reloads and browser restarts.
- Drag and drop – remembers where you put it for each site.
- Ability to persist micro-scripts and apply them automatically everytime you visit the page.
Warning! GreasyThug is slick (it’s the grease) and dangerous (it’s a thug). An interactive console is essentially a pipe straight into eval(). So… BE CAREFUL! If your thug becomes compromised it will be your house that gets trashed with a baseball bat. Remember, this is eval in the elevated Greasemonkey privilages context, its strength for development is also its weakness for security.
Let’s spruce up the google search page. Maybe we should make a whole Greasemonkey user script? Nah, that’s a huge hassle now that we already have GreasyThug.
- Go to Google.com
- A “The website below wants to store information on your computer using Gears” security warning will pop up, as it will do for everydomain that you have GreasyThug enabled for. It’s not really the website using Gears, though some might eventually. Click “Allow”. (This is how the command history and micro-scripts are saved).
- Now let’s get cracking! Drag the interactive console to a comfortable location. (It will begin in the top left by default)
- Now on to the cool stuff: that white background is a little bland for Valentine’s Day, let’s spice it up. Pop this into your console:
- Maybe it’s not quite as good looking as I thought, probably best to stick with white… let’s just refresh and forget about this debacle. Back to normal… but the history remembered my command in case I want to try it again.
- It is my strong belief that there should be a link to STRd6 right next to everyone’s email address on the Google search page. Obviously this should only be for logged in users… I can only change it for myself though…
$('#gb nobr').prepend($('<a href="strd6.com">STRd6</a>'))
- But what about when I refresh… it’ll disappear and all that hard work will be gone?!? Not so good friend:
This will store whatever command you last executed to be executed again when you return. You can save many commands. These are those micro-scripts that you’ve been hearing so much about and they are the future.
So is this the end? It is for today. Now imagine sharing micro-scripts with your friends. It’s our internet now. It just takes some elbow grease and a little thuggery.
Feature requests go in the comments.