A Barrel of Greasy Monkeys|
[Most Recent Entries]
Below are the 20 most recent journal entries recorded in
A Barrel of Greasy Monkeys' LiveJournal:
[ << Previous 20 ]
[ << Previous 20 ]
|Monday, March 16th, 2009|
I'm trying to make a script like the one that is used here: http://www.flickr.com/groups/face-off/
it's called PFO CheckPlay. But they won't share nor help me make one for my flickr group. I'm started to work on it but I really don't know what I'm doing. My flickr group is a little different where there are 2 types of challenges, some require 7 photos and some 3, I don't know if I'd need two scripts then, but if someone could help me that would be great! my flickr group is: http://www.flickr.com/groups/beginner_digital_photography_challange/
this is what i have so far: http://userscripts.org/scripts/show/44110
but it's not really working. All I can get it to do is shoe that it's "working" or searching but never tells me anything
Can you help?
|Friday, March 13th, 2009|
I'm using Firefox 3.0.7 and Greasemonkey 0.8.20090123.1
I can't seem to be able to use LJ Instant Comment or LJ Thread Unfolder. If anyone can shed some light on it, I'd be grateful.
Thanks! Current Mood: confused
|Thursday, May 29th, 2008|
Hey There, Greasemonkies!
I'm writing to this community to try to get Greasemonkey users and developers to contribute to the Mozilla Digital Memory Bank
The Memory Bank is an interactive archive that allows users and developers to contribute images, videos, and accounts of their experiences using and creating Mozilla products, as well as to browse the histories left by others.
We're trying to create an archive of the history of Open Source, starting with Mozilla. Much as Mozilla's products are dependent upon the contributions of users and developers, we need people to help by submitting material for this archive.
Please consider helping out, by:
- Uploading images and documents,
- Creating a short video,
- Sharing a story,
- Responding to a brief questionnaire, or
- Volunteering for an interview.
We've put up a short video to try to promote the site, and raise awareness of the project. Please feel free to share it (or this post) with anyone you know who may be interested in participating:
Thanks for your time, and please give serious thought to contributing. I believe that preserving the history and evolution of Open Source programs will be an invaluable tool for future scholars. I hope some of you feel the same way.
|Monday, May 19th, 2008|
window.clipboardData in Firefox
Is there a way one can add a minimal emulation of window.clipboardData to Firefox with GreaseMonkey? I am not aware of any Firefox-native way to work with clipboard, but seems one can workaround this using Flash (if installed). Does GM have any access to installed plugins and their capabilities?
|Friday, October 26th, 2007|
Detecting locked entries
Hello all. I'd like to be able to detect whether the current page is a locked LJ entry from a GM script. I can't seem to work out a nice way of doing this. Things I thought of:
- Send a HTTP HEAD request with no cookies and see whether I can see the page. Problem: no obvious way of sending the request with no cookies, either by GM_xmlhttpRequest or the traditional XMLHttpRequest. CookieMonster would help, but needs XPCOM access, which apparently I can't use from within a GM script.
- Look for the little padlock image. Problem: some people are using styles which mark friends-only entries in a different way. (Also, it's very hacky, but then, this is a GM script).
- Bounce the request off another site which won't have the cookies. Problem: need another site. If I want to make the script public, I'd be eating someone else's bandwidth (or my own).
Anyone got any other bright ideas?
|Monday, September 3rd, 2007|
new to the community
Has anyone tried anything like this before?
|Monday, April 23rd, 2007|
Talk To The Hand: userscript for hiding tagged entries
(xposted from LJ-Nifty)Talk To The Hand
is a userscript that allows you to hide entries with selected tags from your Livejournal friends page view. This edition is only known to work with the A Sturdy Gesture page layout. Ports to some other layouts should be trivial (I plan to do a Generator one this afternoon), but I haven't manged to figure out a general solution. If you port it to another layout, please post a comment about it, or let me know by e-mail.
When you install the script, go to the Manage UserScripts form and replace my username with your own in the "included pages" field. When you view your friendspage, there will be a little x
by every tag. If you click on it, and then confirm your choice, the page will reload with all entries by that user with that tag removed.
If you want to restore a tag you previously chose to hide, click on the tally of removed entries at the top of the page, and you'll get a menu of tags to restore.TODO:
* Ports to other layouts
* Decent error-handling
* Add support for hiding community posts by specified users
My thanks to boutell
, whose ljwho
userscript provided much of the inspiration and some of the sourcecode for this project.
|Friday, April 20th, 2007|
Two questions for the Monkeys
I'm working on an LJ script, and two questions have come up, one LJ-specific, and the other GM-specific.
1) Is there any straightforward way for a script to tell what layout it's looking at? I'm sure some unique characteristic could be found for the markup of each one, but, damn, is that an ugly, unreliable, and labor-intensive approach.
1½) Why the flaming hell isn't there consistent use of class names across LJ layouts? It would make this stuff much, much easier.
2) Is there a way for a script to access all of its
data, preferably as an array? I know the user can see it through about:config
, but I want my script to be able to access it.
|Saturday, November 25th, 2006|
‘Who Am I?’ script update
Back in February I posted about a proof of concept script that extracts the name of the currently logged in LJ user and maps it to their user ID, as found in the per domain cookies LJ produces. That script only worked in greasemonkey 0.3.
I've just updated it to work under the 0.5 security model and changed the regexp to work on LJ's current pages. If you're interested in writing scripts that need to know what the current user name is, give it a go, and let me know what sort of Firefox/greasemonkey versions it will run under.
Get it from userscripts.org.
|Wednesday, September 27th, 2006|
INSTALLING NEW SCRIPTS
I'm having difficulty installing new user scripts from my desktop. That option in the tools menu won't open at all. Short of putting the js file on a web directory and loading it from there, I don't know how I can install it.
Oh, coincidentally, when I click on the little monkey face on the lower right corner, it looks like I have "no scripts installed." But when I open the manage scripts dialogue window I see that I have three scripts installed. Do you think this means there is a problem with the installation?
And, on a related question, where can I find the physical files of the greasemonkey scripts I have already installed?
Thanks in advance! Current Mood: curious
|Thursday, September 21st, 2006|
This is an idea for a userscript for Facebook.com Someone should create a user script that more easily allows you to invite all or many of your friends to a group or to an event more quickly. The way Facebook is set up now it takes way too long to invite your friends to an event because you need to click on each checkbox and it has to load for 6 seconds each time for a new page. You should be able to click select all and just invite all your friends on your friends list that go to your school and invite all of them to the event. Can anyone create this kind of userscript for greasemonkey and post it on www.userscripts.org? Is this kind of userscript possible for Facebook? Thanks guys. Just an idea.
|Saturday, June 10th, 2006|
Problem with Instant Comment
Over the past week or so I have noticed there are certain livejournal users I can't successfully comment to when using instant comment, and it's always the same group of friends. I have uninstalled and reinstalled the script numerous times, I have tried anything else I could think of as well.
Side note: I am using the script from userscripts.org because the one supplied here
has not worked in my livejournal ever since the URL's were changed.
Does anyone know how I could fix this problem?
|Wednesday, May 31st, 2006|
Is it just me or does userscripts.org whose hosting the userscripts have a tendency to load at a snail's pace every now and then?
X-posted to my own journal. Current Mood: annoyed
|Thursday, May 18th, 2006|
OK...so there's a greasemonkey script (and a separate extension) to hide/ignore users in phpBB, with a link to display a post if you'd like. Now I'm wondering if that same process could possibly be ported over to LJ's friendspage? I am in several communities, and there are some users whose posts are almost always skippable. Rather than having to read the first few sentences to figure out if something is worth my time to read or not, I'd just like to ignore them.
Now, I've looked at the script for phpBB user hide, and I am *SO* *COMPLETELY* *LOST*... I wouldn't know the first thing to start coding something of this nature.
Heck, it may even already exist...but my google-fu didn't turn anything up.
What I'd prefer it to do is to display:hide a user's icon (or in some other way not show it), and replace the body of the post with a link to the post page (possibly mimicking an lj-cut - "User Ignored: Click to view post" or something.) This is the only thing I can think of that would work with as many custom styles as LJ has.
*scratches head* Ook?
EDIT: It would work something like clayfoot
's LJ collapse
, but selectively, based on username. I'd personally rather not have the hover text, but that's a matter of taste.
|Thursday, March 23rd, 2006|
Greasemonkey script for photos?
I don't know if this would be a full-blown extension or just a Greasemonkey script, but I was thinking that it would be nice to be able to right-click on images and have them save to the Livejournal photo gallery automatically, kind of like Firefox's right-click "save picture to folder" extension. This way, rather than hotlinking, it'd be a quick way for paid users to be able to save images to their own accounts.
|Friday, March 10th, 2006|
Instant comment busted?
I just noticed that instant comment has stopped working for me, though I haven't changed my Firefox settings and greasemonkey is enabled.
Has anyone else noticed this? Is there a fix?
I'm using Firefox 188.8.131.52 with the latest version of greasemonkey, on a Mac OS X 10.3.9.
Instant Comment will not work for me. I will go to use it and it will flash and turn solid dark green as though it posted the comment, but when I double check - it hasn't.
I was just wondering if this is a problem other people are having or if it is something I am doing wrong.
|Monday, February 20th, 2006|
How to find the currently logged in user name.
As of about a month ago, Livejournal changed it's session cookies to fix some XSS related security holes, and a side effect of those changes have been that the user name has disappeared from the cookies and been replaced with the user id number (see here for the details of the new cookie layout).
This is a bit of a nuisance for greasemonkey scripts; several popular scripts, such as Instant Comment, relied on knowing the name of the user, and you can't simply look up id to user name mappings without the right permissions on LJ.
However, the user name of the currently logged in user isn't a secret, either; it appears at the top of every www.livejournal.com page as part of the logout form. My solution for finding the user name is to do a GM_xmlhttpRequest against the login.bml page and parse the hidden user field out of the log out form. Roughly, the order of action is:
- Pull the user id out of the ljloggedin cookie that's visible to all livejournal subdomains.
- Look up that uid against values we've previously stored. If we find a match, we're done.
- If not, we need to fetch the login page.
- On load, parse out the hidden input field with the user name
- Set the newly established uid->name mapping
- Return the name
The spanner in the works is that GM_xmlhttpRequest is asynchronous. I worked around this by passing the
function that calls GM_xmlhttpRequest a callback function that it runs when the onload or onerror events are triggered, which sets the result and state back into global variables of your choice.
The initial getUser function takes that callback function and returns true if it has an immediate answer, false otherwise, in which case you need to use setTimeout to call a function that will check the global user name and state until a final answer is made, at which point, it can continue to do whatever it was that needed the user name.
The demonstration script is here at userscripts.org. I've tested it on Firefox 1.0.7, greasemonkey 0.5.3, so let me know the results on any other versions. Coding suggestions welcome.
|Saturday, February 18th, 2006|
Issue installing (any) user scripts
Hi everyone - kinda desperate for help here! Can offer virtual cookies by the tonne for any assistance...
I'm running Firefox 184.108.40.206 and Greasemonkey 0.6.4, and I can't install a single user script at all. I've tried right clicking and scrolling to Install User Script, I've tried opening the .js file and going to Tools > Install User Script, I've tried saving the script to my desktop and adding it, I've un- and re-installed Greasemonkey, I've tried doing it with Greasemonkey both enabled AND disabled, and I've turned off my firewall. Nothing. I want my LJ scripts back and I'm going insaaaaane.( This is the error message I get:Collapse )
Any clues? Someone? Or does anyone know someone I could ask?
Thanks in advance! Current Mood: confused
|Friday, February 17th, 2006|
cut from raw html
i've seen various scripts from userscripts.org, and do i understand it right that i can operate with elements of DOM from this html, but not with tags or raw ascii? i've seen in those scripts everybody use some kind of pointers to something like areas of html page divided by "div" elements with classes or other elements with some definite identity. how can i find some text, or work it like with array of chars or something? i want to write a script for greasemonkey that will cut some defenite table cells for me, but there are no "dividing" elements in the page, and i think that only text analysis can help me.
oh! or maybe there is some kind of perl hooks to firefox or something like that? i could use perl if there is a way to write perl script for firefox.
thanks in advance