Recent posts by Brad Stewart
|
Jun 26, 2007
|
Topic: Userscripts.org discussion / User-supplied HTML no longer fixed/escaped For the last several days, the data retrieval script on my server for my top-scripts script (http://userscripts.org/scripts/show/8339) has been failing due to malformed XHTML on the main pages -- things like &'s not being quoted and tags being opened and not closed Hmm... I seem to have found another bug in writing this post: I wrote the html examples above with HTML ents (ie, |
|
Apr 30, 2007
|
Topic: Ideas and script requests / HTML Find/Replace before display If you're wanting to do this just for a specific site, you could do something like this: 1. When a page on the site loads, change every link to add a "click" event listener
It's a fairly complicated solution -- a simple, quick search and replace might work just a well -- but something like this would do if you absolutely needed to make the changes before the page is displayed. |
|
Apr 19, 2007
|
Topic: Userscripts.org discussion / Spam and malware A few have been put on: http://userscripts.org/scripts/show/8339 by the user http://userscripts.org/users/25343 |
|
Apr 8, 2007
|
Topic: Ideas and script requests / Links in new tabs. hey, if you have a three button mouse, you can get firefox to open links in a new tab by middle clicking instead of left clicking. Or if you ony have two, I think it works if you click with both at once. Otherwise, I think the tabbrowser preferences plugin does what you want (it's a plug-in, not a greasemonkey script.) |
|
Apr 8, 2007
|
Topic: Userscripts.org discussion / Sort Scripts In Descending Install Order Hi Mike, I've written a couple of scripts that might help you out:
Hope these help. :) |
|
Apr 5, 2007
|
Topic: Userscripts.org discussion / "MOST POPULAR" Here you go: |
|
Mar 15, 2007
|
Topic: Script development / Use a javascript variable as search query The way you've got it there, instead of the value of akTargetDesc being put into your link, it'll search for akTargetDesc. Because it's within the string, marked by quotes, the Javascript parser won't know that it's supposed to be a variable.
|
|
Mar 15, 2007
|
Topic: Script development / Standard Function Library If your intent is to write functions to be used as standard libraries, you guys might want to comment your functions a little better. A description of what the function does and what variables it expects would be really helpful. For example, Peter, your $x function seems pretty incomprehensible (at leas with my limited JS expertise). A more descriptive name would probably be in order too. I don't mean to be critical, I just think that would make it a lot easier for others to make use of your code. |
|
Mar 12, 2007
|
Topic: Script development / Writing persistent functions Great, it worked perfectly! Thanks for the article link, too. |
|
Mar 12, 2007
|
Topic: Script development / Writing persistent functions I want to create a function that is called by the onclick event for a link, but I want to reuse the function in multiple places and it's too big to do an anonymous function anyway (as described at http://diveintogreasemonkey.org/helloworld/code...) I also tried assigning the function as a global attribute of window, as also shown on that page, but when I click the link, the error console still tells me the function does not exist. Does anyone know of a way around this? |
|
Mar 11, 2007
|
Topic: Script development / Your most popular script? Jesse, I kind of wish I had read your post before I spent the last couple of hours writing this. (yes, it took me hours... I'm not much of a javascript programmer...) |
