?

Log in

No account? Create an account
A Barrel of Greasy Monkeys
 
[Most Recent Entries] [Calendar View] [Friends]

Below are 20 journal entries, after skipping by the 20 most recent ones recorded in A Barrel of Greasy Monkeys' LiveJournal:

[ << Previous 20 -- Next 20 >> ]
Monday, February 6th, 2006
6:56 pm
[remark]
Timed Journal Entry Backups
While LiveJournal was lacking a way of doing timed backups of entries on the update page, I wrote a GreaseMonkey script to do timed backups, manual backups, and load from those backups.

The interface is fairly self-explanatory. The only problem is that I can never get options dialogs to work right, so you have to edit the backup-delay by editing the script itself. But this is fairly easy to see, so I think it'll be okay. Comment if you have any questions.

entrykeep.user.js

Similar entry posted to lj_nifty
Friday, January 27th, 2006
12:14 am
[mrlachatte]
LJ Collapse
I enjoy clayfoot's LJ Collapse script, but I (and others, judging by comments) wanted it to retain the state of entries between sessions. I've modified it to do this now, and it works for my theme (and clayfoot's coincidentally) but not any others that I tested. Now, as this is a modification for myself, I'm ok with this. I'm hoping that somebody else feels like working out how to make it work for more themes (copy work from the LJ New Comments script?), but for now everybody using the Tranquility II theme can grab the LJ Collapse Redux script.

Edit: Whoopsies, I meant Tranquility II. Not Nebula. Never Nebula!

Edit 2: Updated Jan 27 to use rotating config entries. All previous collapsed entries must be re-collpased due to format change.
Wednesday, January 25th, 2006
5:35 pm
[nemtetsemnewty]
I am not able to access the Userscripts. org



I am not able to access userscripts.org no matter what I do.

It's not the browser as the site times out when I access it with any browser from IE to Netscape, Opera and Firefox too.

Apparently, for Greasemonkey to work, it has to be loaded up on
a webpage. Sending it to me via webmail does not do a thing.

Can anyone come up with suggestions. I want to use my instant comment function again.

Help.
Nemtetsemnewty



Current Mood: determined
Monday, January 23rd, 2006
3:12 pm
[clayfoot]
Collapse friends page entries
UPDATE: Added a menu item to toggle whether entries are expanded or collapsed, by default.

Let's face it: On any given day, some of the entries on your friends page are more worthwhile than others. To help find the diamonds in the rough, I wrote a Greasemonkey script that collapses the text of all of the entries on the friends page down to a [+] sign. When you click on the [+] sign, it changes to a [-] and expands the journal entry in-line. Click it again, and the entry collapes. Hover over the [+] symbol, and the first 100 characters pops up as the hyperlink's title. Because LJ renders every layout differently, this script works better on some layouts than others. I have dreams of expanding it to all LJ layouts, if someone can explain to me a way to universally find the entry text on the friends page. In the meantime, here's a list of tested layouts and how well they work with this script:Read more...Collapse )

Install the script from here:

LJ Collapse

Of course, you'll need FireFox and the Greasemonkey extension.

Cross-posted to lj_nifty.
12:44 am
[clayfoot]
Greasemonkey script: Warn when posting anonymously
Crossposted from here, at the suggestion of hythloday.

Every day, it seems somebody accidentally posts anonymously and quickly follows up with a "That was me" logged-in post. This GreaseMonkey script pops up a 'confirm' dialog and asks you to click 'OK' to continue posting anonymously. It works by adding an event listener to the 'click' event on the submit button. When you click the 'Post Comment' submit button, the event handler looks for the session cookie and a username inside the session cookie. If it finds the cookie and a username, no problem. If not, the dialog pops up to confirm.

Look it over and see if I've missed anything important. If all is well, I'll formally submit it to UserScripts.org.

LJ Anonymous Comment Warning

Of course, you'll need FireFox and the Greasemonkey extension.
Friday, January 20th, 2006
5:07 pm
[herself_nyc]
Instant comment
Instant comment won't work for me, as of about 4 hours ago. Is this due to the shenanigans LJ is going through with changing how URLs are written, etc? Will it be fixed? It's making me mental--the links are there, but I get failure messages (saying I'm not logged in, though I am) when I try to use it.
Thursday, January 19th, 2006
10:53 pm
[pw201]
LiveJournal's URLs updated
Just thought I'd point out that LJ has changed the format of entry URLs, so if you've got scripts which assume the old format, you might need to update them (I've just uploaded another version of my mine).
Sunday, January 8th, 2006
8:31 pm
[pw201]
LJ New Comments script
Just in case anyone here is interested: I've written a GM script which remembers which comments are new every time you visit an LJ entry page. It marks the comments as new and also binds the "n" and "p" keys to visit the next and previous new comments. You can read about it on in my journal. Comments there or here welcome: this is my first venture into Javascript, so be gentle :-)

Anyway, I was wondering whether anyone knows whether there are any plans for GM_deleteValue to remove keys from the database. Doing GM_setValue("blah", undefined) doesn't delete the key. I'm storing the list of comments seen on each page as a CSV string keyed by the LJ username and entry id, so what I'd like to do is maintain a list of the keys in order of last access time, and when the database starts getting big, drop least frequently accessed key and value. If I don't do that, the database can grow without limit, which I think is probably a bad thing.

Is the best place for such feature requests here or the GM mailing list?
Saturday, January 7th, 2006
5:58 pm
[xtomxfallsx]
The Edit Button on Manage User Scripts.
Just a quick question:

How does Greasemonkey determine what application to launch when the Edit button on the Manage User Scripts window is pressed? I've recently done a reinstall of Windows, and now clicking Edit for a userscript does nothing. I've tried associating .js files with my preferred text editor (for both Edit and Open) and still nothing.

Current Mood: hungry
10:23 pm
[andrewducker]
Request for help
I have a script here http://www.notzen.com/andrew/LiveJournalBlockQuote.user.js which should change the code behind the comment page (such as here) so that the 'quote' button always uses blockquote.  (At the moment it uses 'q' for single line quotes and 'blockquote' for multiline quotes).

However, it's not working - I'm dumping the replacement text to the log, and it look fine, but the actual javascript that runs is the original code.

Is this actually impossible?  Or am I just missing something?

Cheers for any help.
Tuesday, January 3rd, 2006
2:19 pm
[koinegeek]
My first GreaseMonkey script - LJ Auto Friends
I'm new to the world of GreaseMonkey. Having discovered it's power, I set out to do something I've been wanting to for the longest time - how to automatically go to the entry on my friends page(s) that I last read, that way I save time navigating and scrolling back to find it.

After ironing out a couple of quirks and realizing the problems my browser-cache was causing me, I finally have a usable script at:

ljautofriends.user.js

To get around the cached-page problem, I added code to my S2-style to disable caching on my friends page (if you don't do this, the results can be strange). It also works if you turn off your browser cache altogether (though not something I recommend).

Anyway, I am open to hints and comments regarding this script. I've known Javascript for a while, but am far from an expert with it.
Wednesday, November 30th, 2005
10:19 am
[envoy]
Firefox 1.5
Anyone have any idea when there will be a 1.5 compatable version of Greasemonkey available?
Tuesday, November 29th, 2005
4:44 pm
[wardrich]
Platypus...
Anybody know where to get a working version of Platypus for Firefox1.5?  Or know how to get it to work?

-Richard
Tuesday, November 22nd, 2005
1:39 am
[rayne_vandunem]
Last frontiers for Greasemonkey...er, or at least one of them...
AOL.

Surely there are more than just these two measly scripts that I found at Userscripts.org, right?

I mean, they've already gotten a whole army of scripts for Google, Flickr, Amazon, and Yahoo, among other such popular websites and services.

Of course, then again, they don't have that many scripts for all the sites and services which fall under MSN, either...
Friday, November 4th, 2005
8:54 am
[happysteve]
Greasemonkey for Google Reader
This is cool, at least one person behind the Google Reader is all for Greasemonkey scripts. In fact, they even provide a nice workaround for the "function name change when compressing javascript" quirk...

http://googlereader.blogspot.com/2005/11/warning-geekery-ahead.html
Thursday, November 3rd, 2005
12:59 am
[kunzite1]
Add Userpic Preview to Comment Post Form
this has info about this script.

Current Mood: tired
12:58 am
[kunzite1]
Add Pictures link to XColibur
so. i've been hacking on some GM scripts recently.
i'd be happy if you more-experienced people took a look at my initial attempts at this stuff.
this is the script that i speak of with this post. please fix as necessary. :)

Current Mood: tired
Friday, October 14th, 2005
6:56 pm
[ebel]
Want variable to be evaluated 'at compile time' not 'run time'
I am trying to write a 'quote' feature for LJ. I'm looping over all the comments. Initially I'm just setting the textbox to the text that should be quoted.

I'm having trouble with this function:
replyto_quick_view_button.onmousedown = function(e) { document.getElementById('body').value = document.getElementById("td_id_"+replyto_id).innerHTML; alert("td_id_"+replyto_id); };

The problem is that whenever I click on the 'Quote' link, it give me the text from the very last comment. I reckon it's cause after the script is executed replyto_id is the same as it was, and when you click on the 'quote' text, it refers to that value. IE the variable replyto_id is evaluated onmousedown. I would like "td_id_"+replyto_id to be evaluated when onmousedown is set, ie when the script is run. How do I do this?
Friday, September 23rd, 2005
1:55 pm
[lemniskate]
anyone else having a problem with the 'instant comment' script? now that I've upgraded firefox, whenever I click on the instant comment link, along with the pop up comment box, I get a page that says, Not Found / The requested URL was not found on this server. You may be receiving this error as a result from maintenance or other site problems...

any idea how to fix it? I uninstalled and reinstalled the instant comment script, and I really don't want to revert to the old version of firefox; the new one fixes a significant security problem.

Thanks in advance :)
Wednesday, August 31st, 2005
10:31 pm
[coolerbythelake]
hey all. i'm having a bit of trouble installing user scripts. i go to the script's page, select "install this user script" from the tools menu, set up the sites that i want the script to be used on...

but then when i go to confirm everything by clicking "OK", nothing happens. it won't save the script. all i can do is click "cancel", and it just closes the menu.

any ideas? might there be a conflict with another extension? i also have forecastfox and fire ftp installed. thanks.
[ << Previous 20 -- Next 20 >> ]
Greasemonkey homepage   About LiveJournal.com