View Full Version : Instapaper Greasemonkey script
jsatt
03-18-2008, 02:19 PM
After using the insanely awesome Instapaper for a few days, I love it. This is the kind of functionality I've wanted in a lot of sites for a while. So it took me a few days, but I got around to building a Greasmonkey script that puts a "Read Later" button on each story on Digg. Yeah, I know you can just click on the story and click read later in your bookmarks, but this actually adds a link next to each story so you don't have to leave the page. It's also linking to the Digg story page so that you can still digg it later if you like the story.
I built it for digg, but i'm putting it out as Creative Commons, so someone go rebuild it for reddit or these forums or anything else you see fit.
http://userscripts.org/scripts/show/24036
tuxotaku
03-18-2008, 02:51 PM
After using the insanely awesome Instapaper for a few days, I love it. This is the kind of functionality I've wanted in a lot of sites for a while. So it took me a few days, but I got around to building a Greasmonkey script that puts a "Read Later" button on each story on Digg. Yeah, I know you can just click on the story and click read later in your bookmarks, but this actually adds a link next to each story so you don't have to leave the page. It's also linking to the Digg story page so that you can still digg it later if you like the story.
I built it for digg, but i'm putting it out as Creative Commons, so someone go rebuild it for reddit or these forums or anything else you see fit.
http://userscripts.org/scripts/show/24036
DUDE! EPIC WIN! We need more instapaper browser toys!!
jsatt
03-18-2008, 07:15 PM
Thanks Tux.
I'm bored a work today so I made one to work with reddit.
http://userscripts.org/scripts/show/24081
tuxotaku
03-18-2008, 07:44 PM
seriously, what I'd LOVE to see, is a howto on writing greasemonkey scripts...I mean, I know they're more or less just bits of javascript that get injected into a page, but I'd love to see a howto on making a simple one.
jsatt
03-18-2008, 10:18 PM
The howto's are out there, and i'm no good at writing them so i won't try. But i will tell you, the best way to learn is:
First, have a good understanding so how Javascript works. That's all it is.
Second, look at other people's scripts. Most scripts are very simple, and easy to figure out.
Finally, just play around with it. Install a base of the script (i.e. a really simple bit of code, and the "// ==UserScript==" & "// ==/UserScript==" comments) then find the installed script (in the gm_scripts folder inside your Firefox Application data folder). Open the installed script in a text editor and you can edit the script and refresh the page for real-time testing.
Oh, and the wiki at Greasespot (http://wiki.greasespot.net/Main_Page) is a GREAT resource. It covers everything in Greasemonkey from simply writing to the document to processing XHR requests for AJAX.
renehasp
03-19-2008, 03:51 AM
I wish Revsion 3 added a programing \ script show like pixel perfect. I would love to lear how to program and script but all the books and site just dont click in my head. :( Except one tool I'm good at Autoit3..
But I would love to learn VBS \ C# \ Java and even how to make a nice website and java script menus...
sarahlane
03-20-2008, 01:05 AM
After using the insanely awesome Instapaper for a few days, I love it. This is the kind of functionality I've wanted in a lot of sites for a while. So it took me a few days, but I got around to building a Greasmonkey script that puts a "Read Later" button on each story on Digg. Yeah, I know you can just click on the story and click read later in your bookmarks, but this actually adds a link next to each story so you don't have to leave the page. It's also linking to the Digg story page so that you can still digg it later if you like the story.
I built it for digg, but i'm putting it out as Creative Commons, so someone go rebuild it for reddit or these forums or anything else you see fit.
http://userscripts.org/scripts/show/24036
Um, this is AWESOME! You rock!
jsatt
03-20-2008, 06:42 PM
Um, this is AWESOME! You rock!
Thanks Sarah, I try.
BTW, I found some occasional usability issues with the Digg script. Should be fixed, just install from the same link.
I wish Revsion 3 added a programing \ script show like pixel perfect. I would love to lear how to program and script but all the books and site just dont click in my head. :( Except one tool I'm good at Autoit3..
But I would love to learn VBS \ C# \ Java and even how to make a nice website and java script menus...
Anything Revision3 can put on wont teach you anywhere close to as well as a book, or even the hundreds of tutorials on Google Videos and Youtube. And even then, programming just doesn't ever click for some people :-\
renehasp
03-20-2008, 08:54 PM
I am totally one of thoes peeps. Not smart in programing. I give all you programers big props....
-Rene
maubrowncow
03-20-2008, 11:22 PM
jsatt... that is awesome.