Forum Posts

53176 posts

Nov 16, 2007
MrWayne 2 posts

Topic: Userscripts.org discussion / What am I missing?

I am using a script for lynda.com I can tell that the mov is downloading, but I never see any "save as" dialog, and I can't locate the mov through search and find. What am I missing? I feel so dumb.

Thanks so much.
Wayne

 
Nov 16, 2007
gollum 183 posts

Topic: Script development / Image replacement before original loading

Not sure if I understand exactly what you're after...

1. Maybe you could remove the node and inserting another with your specs

2. Set an eventListener "DOMAttrModified" on the .src element and watch for (and block/replace) the address.

 
Nov 16, 2007
znerp 1589 posts

Topic: Userscripts.org discussion / Deleting a comment..

I don't believe that this is possible yet, although after a quick search, I see that a ticket has been created for this to be implemented.

 
Nov 16, 2007
Freeze 48 posts

Topic: Userscripts.org discussion / Deleting a comment..

How do I delete a comment, or edit it at least?

I posted a comment in response to a question on a script and I had forgotten that the code I was using was on one line, so now the whole page is stretched out.

Am I stuck with this for now?

 
Nov 15, 2007
Shilosh 1 post

Topic: Script development / Switch to Gmail's old version

Hi, I'm using a script (GmailRTL which add buttons to write from right to left http://userscripts.org/scripts/show/10023) that works only in Gmail's old version.
Can someone please tell me how do I write a script that automatically opens Gmail in the older version (there is a button in the upper right corner of Gmail).

 
Nov 15, 2007
znerp 1589 posts

Topic: Script development / new user script - doesn't prompt for file

To set your editor, what you need to do is open about:config and filter for 'greasemonkey'. The top value for this should be greasemonkey.editor. Right click this value, click modify and then type the location of your text editor, eg "C:\Windows\Notepad.exe". If this is set correctly, then it should pop up the next time that you try to create a new script.

 
Nov 15, 2007
xonj 1 post

Topic: Script development / Image replacement before original loading

Hi,

I've written a rudimentry ad blocking script and it works great with the exceptions that the original ads are still downloaded, before being replaced.

In my script I use the code element.src=whatever.

My understanding was that the script was run before any links/dependancies were followed on the page?

How can I change/correct this behavior?

Thanks!

 
Nov 15, 2007
ihdavis 4 posts

Topic: Script development / new user script - doesn't prompt for file

znerp - thanks! you said that when I select new user script it, it should popup my editor. it doesn't; how do I make it do that? it'd be nice to use that, as it will insert some text at the top.

thanks!

 
Nov 15, 2007
Robert Andrews 26 posts

Topic: Ideas and script requests / Gmail - delete msg from msg list

I want to be able to delete messages really quickly - without clicking to view them and without having to tick them for a dropdown selection.

So can anyone knock something up to allow deletion right from the message list?

And come to think of it - why not more actions - like applying labels?

 
Nov 15, 2007
JD2066 6 posts

Topic: Userscripts.org discussion / Script Install Not Picking Up Metadata

Do you have any idea on how to make the name 9 characters?
If I shorten it to 9 characters I get something like "GFSWinFix" which would give no clue to someone looking as to what the script does.

 
Nov 15, 2007
Descriptor 851 posts

Topic: Userscripts.org discussion / Script Install Not Picking Up Metadata

Well, 39 is still 30 more than it needs to be.
I was a bit wrong about the name - Greasemonkey removes the spaces from the filename, but uses the meta value in the menu, the configuration files is another story. Apparently you've discovered two of the problems with spaces.

 
Nov 15, 2007
JD2066 6 posts

Topic: Userscripts.org discussion / Script Install Not Picking Up Metadata

It appears the name is 39 characters long.
Looking on this site though I found a script at http://userscripts.org/scripts/show/9086 that a name as long too and it's install appears to work so I don't think the name is it.
Justin

Edit:
I just updated my script and put the @namespace before @name instead of after @author and now the install works.

Edit 2:
I just updated my script and moved @namespace back to being after @author and it still works.
One the edit I did above I had removed a space the somehow got in front of the metadata so that must have been the problem the whole time, I guess.

Edit 3:
I just did a local test with a space in front and it did the same thing. I have no idea how the space got there but now I know why I could never install script either, as I always copied the same metadata template to each script.

 
Nov 15, 2007
Descriptor 851 posts

Topic: Script development / GM_xmlhttpRequest referer not passing?

No, GM_xmlhttpRequest does not send a referer header (or it is always blank). I assume this is a bug in Greasemonkey, or perhaps it's intentional. I tried searching for info on it but gave up. I did not see it listed here: http://greasemonkey.mozdev.org/bugs.html

 
Nov 15, 2007
Descriptor 851 posts

Topic: Userscripts.org discussion / Script Install Not Picking Up Metadata

I'm sure the name is too long, @name becomes a files name. I would never use spaces myself, I think it's a bad idea. But try a much shorter name - I'm sure you don't want the Greasemonkey context menu being 80 characters wide anyway.

 
Nov 15, 2007
znerp 1589 posts

Topic: Script development / new user script - doesn't prompt for file

I'm not entirely sure what you're trying to do, but it sounds like you're clicking the option on Greasemonkey to write a new user script. If this is the case, then after entering those details it should pop up your editor (which you should have selected to be a text editor) with some lines of text at the top. You can then write a user script using this. This will then be saved in a folder in the Firefox profile directory.

If however you're trying to install a userscript, all you need to do is ensure that Greasemonkey is enabled and then open the .user.js file using Firefox and Greasemonkey should automatically pick up on this and install the script.

To answer your other question, putting * in the includes will mean that a script will run on every page (unless that page is in the excludes).

 
Nov 15, 2007
ihdavis 4 posts

Topic: Script development / new user script - doesn't prompt for file

when i select "new user script" from popup in my firefox, I type in the information then hit OK. it doesn't prompt me to select the location of the .js file. am I doing something wrong?

also, entering * into includes means it'll hit every site, right?

thanks!

 
Nov 14, 2007
JD2066 6 posts

Topic: Userscripts.org discussion / Script Install Not Picking Up Metadata

Hi,
I just tried clicking the install button on my script page to test it at http://userscripts.org/scripts/show/13798 and when the dialog came up, it didn't show the script name or excludes.
I'm posting here as I'm not sure if it's just my computer or if this is happening to other people too.
Justin

 
Nov 14, 2007
Arend v. Rei... 70 posts

Topic: Userscripts.org discussion / Script download counter as rss feed

Want to get updates of your script's download counter as an rss feed? Try this yahoo pipe:
http://pipes.yahoo.com/arend/download_counter_f...

The pipe is experimental. It might stop working, or it might not work for all scripts.

If you find a script for which it doesn't work, please drop a comment here.

Enjoy.

 
Nov 14, 2007
gimmic 4 posts

Topic: Script development / GM_xmlhttpRequest referer not passing?

Hey everyone,
I've been working on a little script that has to send a request to a specific page using xmlhttpreq, and while it seems to be sending everything else, it is not sending the referer header information. I have verified this with packet sniffing.

I've done extensive googling but have not found a specific answer, it almost seems like firefox is dropping the referer header tag? What's the deal?
Is there a way around it?

 
Nov 14, 2007
Beaker 6 posts

Topic: Ideas and script requests / ReloadEvery improvment?

No one? Not even a simple thing to automatically press yes or something

 
Nov 14, 2007
Pulmol 2 posts

Topic: Ideas and script requests / Youtube RepeatButton

A RepeatButton for Youtube...
Thats the idea^^...
sorry my english is not the best^^...
Pulmol

 
Nov 14, 2007
gollum 183 posts

Topic: Script development / onerror detection

Tried every DOM event trap to do with nodes... nothing would fire. To be expected I suppose, as by the time GM attaches the listener the tree already exists and all we're getting is content.

BTW, as an experiment tried.. window.addEventListener("load", init, false), which shifted the error from my xxx.user.js script to
tbl[0] has no properties
.../greasemonkey.js Line 425
[Break on this error] //loggify(Module, "greasemonkeyService:Module");

I think we need a workaround for "onerror", as waiting for content loading is, in effect, going back to the bad old days when all we had was 'onload'. Also it just delays the onset of 'flicker'.

Admittedly using some form of window.onerror=null; would require more defensive coding, but is that a bad thing?

 
Nov 14, 2007
Tobu 13 posts

Topic: Ideas and script requests / Make text-only references into links

Example of text-formatted reference [1]. Another [2].
It would be nice to make these links, or auto-expand them on click.

[1] Footnote linked from above
[2] http://example.org/

 
Nov 14, 2007
znerp 1589 posts

Topic: Userscripts.org discussion / userscripts.org : edit/delete script tag

I don't know about the tags, but to delete and entire script there is an option on the right under "Admin for script".

 
Nov 14, 2007
Sean Watson 84 posts

Topic: Script development / Image replacement help

Nvm I fixed it. I had a typo in the code. Thank you both for your help. I was practically pulling my hair out in frustration.