The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

The Greasemonkey thread

LewiePLewieP Registered User regular
Greasemonkey is a firefox extension that makes the whole internet customisable.

I have limited understanding of how it works on a technical level, but it's great.

Once you have the extension installed, head to userscripts.org and pick any scripts you want.

Here are some examples:

Muxtape downloader - Lets you download compilations from muxtape.com in mp3 format, like this great (exclusive) menomena b sides/rarities collection.

Cleanup Facebook - gets rid of all evidence of applications from facebook, both requests and on other peoples profiles.

No delay - removes the countdown timer from sites like megaupload to let you download files straight away.

Textarea backup - Automatically backs up any written text every ten characters, and reloads them if the page gets closed, so you never need to re-type long posts if for some reason you close the forum window.


I just got into this yesterday, but are there any cool scripts that anyone else knows of?

LewieP on

Posts

  • urahonkyurahonky Cynical Old Man Registered User regular
    edited May 2008
    Greasemonkey is awesome. The people who play Ikarium (browser based Civilization-like game) use some scripts to get around a lot of the stuff.

    http://forums.penny-arcade.com/showthread.php?t=57909

    I didn't even think about using it for the other things you posted Lewie. Thanks, I'll poke around and post if I find a good one.

    urahonky on
  • JaninJanin Registered User regular
    edited May 2008
    No auto-refresh

    This is the final block in "give me my browser back, fuckers" toolset, with the others being No Script and Adblock Plus.

    Janin on
    [SIGPIC][/SIGPIC]
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited May 2008
    GMailSecure -- force Gmail to always use HTTPS, since my email is my business and nobody else's.

    Echo on
  • DaedalusDaedalus Registered User regular
    edited May 2008
    FT4U: Hides Youtube comments by default: you need to click on a link titled "Show Hideous Clusterfuck" to see them.

    Daedalus on
  • Mr_RoseMr_Rose 83 Blue Ridge Protects the Holy Registered User regular
    edited May 2008
    That is amazingly useful. I wish I'd heard of it before I saw the Moon Landing video
    on there. Damn you, xkcd!

    On topic; there are dozens of Google "fixes" available, including this one which expands the labels panel on the left hand side of the Gmail interface. Astonishingly, this is actually useful.

    Mr_Rose on
    ...because dragons are AWESOME! That's why.
    Nintendo Network ID: AzraelRose
    DropBox invite link - get 500MB extra free.
  • squirlysquirly Registered User regular
    edited May 2008
    Textarea Backup is one I've been using for a long, long time. It's incredible.

    squirly on
    Diablo2 [US West; Ladder]: *DorianGraph [New/Main] *outsidewhale [Old]
  • urahonkyurahonky Cynical Old Man Registered User regular
    edited May 2008
    Daedalus wrote: »
    FT4U: Hides Youtube comments by default: you need to click on a link titled "Show Hideous Clusterfuck" to see them.

    Holy shit this is awesome.

    urahonky on
  • NarianNarian Registered User regular
    edited May 2008
    Hmm, it doesn't seem to be compatible with Firefox 3.0RC1. Anywhere where I can download the addon and force compatibility?

    Narian on
    Narian.gif
  • DaedalusDaedalus Registered User regular
    edited May 2008
    Narian wrote: »
    Hmm, it doesn't seem to be compatible with Firefox 3.0RC1. Anywhere where I can download the addon and force compatibility?

    You can go to the greasemonkey website and download the beta of the new version they're working on, which adds Fx3RC1 support.

    Daedalus on
  • NarianNarian Registered User regular
    edited May 2008
    Daedalus wrote: »
    Narian wrote: »
    Hmm, it doesn't seem to be compatible with Firefox 3.0RC1. Anywhere where I can download the addon and force compatibility?

    You can go to the greasemonkey website and download the beta of the new version they're working on, which adds Fx3RC1 support.

    Really? Sweet, thanks. I guess I missed that when I was looking for a place to download the file from.

    Narian on
    Narian.gif
  • squirlysquirly Registered User regular
    edited May 2008
    The current version works fine if you force compatibility. Edit: Scrap that, I think my FF3 may have gone back from RC1 to an earlier version.. but I'm not sure, I'm freaking out right now.

    squirly on
    Diablo2 [US West; Ladder]: *DorianGraph [New/Main] *outsidewhale [Old]
  • JaninJanin Registered User regular
    edited May 2008
    This thread has inspired me to write a few scripts of my own -- one of them you guys might be interested in, it changes the PA front page to include the comic directly.

    http://userscripts.org/scripts/show/27419

    Looks best if you combine this with Stylish and Penny Arcade -- Classic Look.

    EDIT: here's what it looks like:
    24mz3tx.jpg

    Janin on
    [SIGPIC][/SIGPIC]
  • urahonkyurahonky Cynical Old Man Registered User regular
    edited May 2008
    Wow, looks good Janin. Where'd you go to learn the scripts? Is it just HTML?

    I'd like to make my own script... I dunno what I'd do, but I'll do it!

    urahonky on
  • JaninJanin Registered User regular
    edited May 2008
    urahonky wrote: »
    Wow, looks good Janin. Where'd you go to learn the scripts? Is it just HTML?

    I'd like to make my own script... I dunno what I'd do, but I'll do it!

    Stylish uses pure CSS. Greasemonkey uses pure JavaScript. I got a little fancier in the GM script than needed because I like using jQuery, but you can just call raw DOM functions if you want.

    I learned JavaScript over a couple years with almost no tutorials or useful documentation, but John Resig's book Pro JavaScript Techniques is supposed to be quite good.

    Janin on
    [SIGPIC][/SIGPIC]
  • BurtletoyBurtletoy Registered User regular
    edited May 2008
    Oooo. Pretty.

    Burtletoy on
  • urahonkyurahonky Cynical Old Man Registered User regular
    edited May 2008
    Janin wrote: »
    urahonky wrote: »
    Wow, looks good Janin. Where'd you go to learn the scripts? Is it just HTML?

    I'd like to make my own script... I dunno what I'd do, but I'll do it!

    Stylish uses pure CSS. Greasemonkey uses pure JavaScript. I got a little fancier in the GM script than needed because I like using jQuery, but you can just call raw DOM functions if you want.

    I learned JavaScript over a couple years with almost no tutorials or useful documentation, but John Resig's book Pro JavaScript Techniques is supposed to be quite good.

    Oh sweet. Thank you sir, you're the best.

    urahonky on
  • DírhaelDírhael NorwayRegistered User regular
    edited May 2008
    Janin wrote: »
    This thread has inspired me to write a few scripts of my own -- one of them you guys might be interested in, it changes the PA front page to include the comic directly.

    http://userscripts.org/scripts/show/27419

    Looks best if you combine this with Stylish and Penny Arcade -- Classic Look.

    EDIT: here's what it looks like:
    [img-]http://i31.tinypic.com/24mz3tx.jpg[/img]

    Here's an alternative custom style that I'm using in Opera, but that you can also use it with the FF stylish extension instead of the "classic look" one. This one just kills the banners and expands the newsposts to fit the container now that the sidebar is gone instead of completely changing the look of the page.
    div#adhoriz,div#advert { display: none !important }
    div#news { width: auto !important }
    .newspost .postheader { width: 700px !important }
    

    pennyarcadeapprehensioniy7.th.png

    ...

    By the way, did you write the userstyle you linked? If so, may I suggest changing the background-image: url('...') parts to use background-image: url('data:image/png,base64,<base64-encoded-version-of-image-here>') instead? That way you don't depend on external image hosts to serve any content, so it is both more reliable and faster :)

    Dírhael on
  • JaninJanin Registered User regular
    edited May 2008
    Dìrhael wrote: »
    By the way, did you write the userstyle you linked? If so, may I suggest changing the background-image: url('...') parts to use background-image: url('data:image/png,base64,<base64-encoded-version-of-image-here>') instead? That way you don't depend on external image hosts to serve any content, so it is both more reliable and faster :)

    Thanks for the tip. I wrote that style a long time ago, so it isn't very well designed.

    Janin on
    [SIGPIC][/SIGPIC]
  • DírhaelDírhael NorwayRegistered User regular
    edited May 2008
    Janin wrote: »
    Dìrhael wrote: »
    By the way, did you write the userstyle you linked? If so, may I suggest changing the background-image: url('...') parts to use background-image: url('data:image/png,base64,<base64-encoded-version-of-image-here>') instead? That way you don't depend on external image hosts to serve any content, so it is both more reliable and faster :)

    Thanks for the tip. I wrote that style a long time ago, so it isn't very well designed.

    Before changing anything, I should mention that I just noticed a typo I did in my previous post...it should have been like this: background-image: url('data:image/png;base64,<base64-encoded-version-of-image-here>')

    Dírhael on
  • LewiePLewieP Registered User regular
    edited June 2008
    Now is probably a good time to bump this thread, what with the release of Firefox 3

    LewieP on
  • SpoitSpoit *twitch twitch* Registered User regular
    edited June 2008
    Someone mention that there were scads of google ones, are there any that will filter out the completely useless yahoo answer results which clutter out all the relevant results?

    Spoit on
    steam_sig.png
  • AiranAiran Registered User regular
    edited June 2008
    Dirhael, how do I go about setting up the PA front page like yours in Opera?

    Airan on
    paDudSig.jpg
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited June 2008
    Airan wrote: »
    Dirhael, how do I go about setting up the PA front page like yours in Opera?

    You switch to Firefox and use Greasemonkey. Which is what this thread is about.

    Echo on
  • Shazkar ShadowstormShazkar Shadowstorm Registered User regular
    edited June 2008
    Echo wrote: »
    GMailSecure -- force Gmail to always use HTTPS, since my email is my business and nobody else's.
    LifeHacker made a "Better Gmail" extension that includes this and a bunch of other Gmail things and it is awesome.

    Shazkar Shadowstorm on
    poo
  • TeaSpoonTeaSpoon Registered User regular
    edited June 2008
    I don't get it.

    It's an extension on which you can load other extension?

    This sounds awesome, though.

    TeaSpoon on
  • AiranAiran Registered User regular
    edited June 2008
    Echo wrote: »
    Airan wrote: »
    Dirhael, how do I go about setting up the PA front page like yours in Opera?

    You switch to Firefox and use Greasemonkey. Which is what this thread is about.

    NEVER.

    I'll take it to PMs

    Airan on
    paDudSig.jpg
  • BurtletoyBurtletoy Registered User regular
    edited June 2008
    Airan wrote: »
    Echo wrote: »
    Airan wrote: »
    Dirhael, how do I go about setting up the PA front page like yours in Opera?

    You switch to Firefox and use Greasemonkey. Which is what this thread is about.

    NEVER.

    I'll take it to PMs

    How To: Greasemonkey in Opera!

    Burtletoy on
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited June 2008
    Ah, that's some progress. But can they be URL-specific?

    Echo on
  • DírhaelDírhael NorwayRegistered User regular
    edited June 2008
    Echo wrote: »
    Ah, that's some progress. But can they be URL-specific?

    Are you asking about using Greasemonkey scripts in Opera? If so then the answer is yes, it respects the Greasemonkey @include comments so that part works just (?) like in Firefox. You can also use site preferences to do the same if you don't want to edit the scripts.

    Dírhael on
  • Shorn Scrotum ManShorn Scrotum Man Registered User regular
    edited June 2008
    I was having problems getting Janin's script to work, but I figured it out. Figured I'd post the solution here:

    In his code he calls some javascript from GoogleAPI, so if you are like me and are using NoScript you either need to not bother using Janin's script or allow GoogleAPI to pass through.

    Shorn Scrotum Man on
    steam_sig.png
  • JaninJanin Registered User regular
    edited June 2008
    I was having problems getting Janin's script to work, but I figured it out. Figured I'd post the solution here:

    In his code he calls some javascript from GoogleAPI, so if you are like me and are using NoScript you either need to not bother using Janin's script or allow GoogleAPI to pass through.

    Yeah, I load jQuery from Google's free hosting to avoid having to deal with the native DOM.

    Janin on
    [SIGPIC][/SIGPIC]
  • DírhaelDírhael NorwayRegistered User regular
    edited June 2008
    Janin wrote: »
    I was having problems getting Janin's script to work, but I figured it out. Figured I'd post the solution here:

    In his code he calls some javascript from GoogleAPI, so if you are like me and are using NoScript you either need to not bother using Janin's script or allow GoogleAPI to pass through.

    Yeah, I load jQuery from Google's free hosting to avoid having to deal with the native DOM.

    You could also just do as I did when I slightly modified that script for use with Opera and base64 encode the js from googleapis.com and embed it directly into the Greasemonkey script. That way you no longer depend on any external servers. I would post the change here but vbulletin won't allow me to post that much text in a single post. I uploaded the modified version here so you could take a look at it or just use it as is (will work with both Firefox and Opera now).

    Dírhael on
  • JaninJanin Registered User regular
    edited June 2008
    Yes, I am going to paste 75k of gibberish into my GM scripts just in case Google goes down.

    Janin on
    [SIGPIC][/SIGPIC]
  • DírhaelDírhael NorwayRegistered User regular
    edited June 2008
    Janin wrote: »
    Yes, I am going to paste 75k of gibberish into my GM scripts just in case Google goes down.

    I just said you could :P Anyone not wanting to allow googleapis.com in noscript could also just download the javascript and change the greasemonkey script to reference the local copy instead. Would be nice if you could add
    if (window.opera) {
    	var unsafeWindow=window;
    }
    
    in the GM script though, seeing as that would make it work in both browsers.

    Dírhael on
  • JaninJanin Registered User regular
    edited June 2008
    That actually breaks it in Firefox, since "unsafeWindow" is then detected as an unset local variable rather than a global. Updated the script to use
    var _window;
    try { _window = unsafeWindow; } catch (e) { _window = window; }
    

    Janin on
    [SIGPIC][/SIGPIC]
  • DírhaelDírhael NorwayRegistered User regular
    edited June 2008
    Janin wrote: »
    That actually breaks it in Firefox, since "unsafeWindow" is then detected as an unset local variable rather than a global. Updated the script to use
    var _window;
    try { _window = unsafeWindow; } catch (e) { _window = window; }
    

    Ah, didn't realize that. Thanks for updating the script as it really is useful when coupled with a few css tweaks. Looks like I'll be adding that piece of code to my list of snippets...never know when you need them :)

    Dírhael on
Sign In or Register to comment.