Forum Posts

53271 posts

Nov 27, 2007
znerp 1589 posts

Topic: Script development / How To Devolop script

A good place to start is by reading Dive into Greasemonkey.

 
Nov 27, 2007
yash404 2 posts

Topic: Script development / How To Devolop script

hi can any1 tell me what knowledge i need to devolop my own script?

 
Nov 27, 2007
LeoTiger110 2 posts

Topic: Userscripts.org discussion / wht da hell... is dis err 'Whoops! There was a server error!'

for 3days i m receiving this err 'Whoops! There was a server error!' ..,
when i update my new scripts...,

 
Nov 27, 2007
theaulddubliner 88 posts

Topic: Userscripts.org discussion / Spam and malware

a comment in YouTube "Lights Out" – Userscripts.org contains a link to an unrelated site

i don't know whether it is ok as a signature or considered spam

 
Nov 27, 2007
Yog 21 posts

Topic: Userscripts.org discussion / won't install

I'm sorry, should have searched better, but this time i had no idea what to do :s

Anyway, i found my answer here:
http://www.greasespot.net/2005/12/troubleshooti...

funy how easy it was to fix.

 
Nov 27, 2007
Descriptor 851 posts

Topic: Ideas and script requests / Correct Google URL Redirects

Yes, that's probably the best approach. It's direct and gets rid of the function you don't want.

An easy way to view the source of links...
Click somewhere before the link
Press TAB until the link you want is outlined
Hold SHIFT and press the right-arrow to select the link (or the down-arrow)
Right-click the selection (or use the Menu meta-key, right next to the Windows key)
Select "View Selection Source" from the menu.

This will show you the WYSIWYG rendered source around the link.

 
Nov 27, 2007
Descriptor 851 posts

Topic: Userscripts.org discussion / Why can't you stop all this scrap all nonsense?

I'm sure they are too busy working their paid jobs right now. The situation is probably much like what's mentioned in this thread. So anyone can help this site.
However I think a simple referrer check for the scripts directory would trip these scrap guys up. The same type of thing they use to stop hot-linking of images.

 
Nov 27, 2007
Delphiki 1 post

Topic: Ideas and script requests / Someone make a Travian Notepad?

It would be really helpful, for those of us who dont want to pay for it :(

 
Nov 27, 2007
pw 31 posts

Topic: Userscripts.org discussion / Why can't you stop all this scrap all nonsense?

As one of those who has written a script to stop this crap, I would guess that the site owners do not want to censor content, but would prefer that users filter content they would prefer not to see. (And are we not in a unique position to do that?) I think that's the right position to take, although I am as irritated as you are - perhaps more, since I wrote a script to contain it - by these stupid, inane, asinine, juvenile, immature script "contributions". I mean, what the hell is the point? It's a denial of service attack, I suppose. Mindless, passive-aggressive, trivially easy (so no sign of intelligence). I would think the kids doing it would get embarrassed after a while, to be behaving so lamely. They are, in any grand scheme of things that makes sense, total losers.

 
Nov 27, 2007
Rudi Pittman 49 posts

Topic: Userscripts.org discussion / Why can't you stop all this scrap all nonsense?

I would like to be able to see a script list without 10000 "sends scraps to all your friends" scripts listed...why aren't the site owners doing something to stop this crap? Why are people writing SCRIPTS to filter this crap when you should be stopping it in the first place?

 
Nov 27, 2007
sizzlemctwizzle 2246 posts

Topic: Ideas and script requests / Correct Google URL Redirects

unsafeWindow.rwt = function(){ return true; }
This got rid of the rewriting for me.

 
Nov 27, 2007
ben rigby 3 posts

Topic: Ideas and script requests / Cross-post to Delicious & Typepad, From Google Reader. 2 Clicks

Sweet - i just cobbled a bunch of scripts together to modify the googlereaderdelicious.user.js script to cross post to delicious and my blog at typepad... all in 2 clicks.

i created a server side proxy using:
http://dentedreality.com.au/phpatomapi/

which does the posting to typepad - and added the following to saveBookmark()

	if (labels.match('postit')){
		var blogContent=notes+' Reference:'+url;
		var data = 'content='+blogContent+'&title='+title+'&blog=http://www.typepad.com/t/atom/weblog/blog_id=######'+'&post=Post, for real';
	
		GM_xmlhttpRequest({
			method: 'POST',
			url: '##MYPROXY###',
			headers:{'Content-type':'application/x-www-form-urlencoded'},
    		data:encodeURI(data)
		})
	}

so, now, when i'm using google reader, if i want to post some commentary to my blog about an article, i can do it in 2 clicks. i just have to tag it with "postit" and it will auto-post to my blog along with the URL.

would love to figure out how to do this without the server side proxy - and also from delicious directly (so that i don't necessarily have to use google reader).

will try to make this thing more generic so that other people can use it - if there is any interest... right now, all of my login details are hard coded into the scripts....

 
Nov 26, 2007
Nyks 70 posts

Topic: Ideas and script requests / Correct Google URL Redirects

Thanks for your detailed answer.

I deactivated "web-protocol" in google; but the rewrite are still present.

I looked at the source; i guess, this is the relevant string (searching for test, showing result "www.test.de/shop"):


<a href="http://www.test.de/shop/"
class="l"
onmousedown="return rwt(this,'','','res','2','AFQjCNEgr5fgt5gd9fC2fFyUPE_YPg71RFwiVQ','&amp;sig2=SWYb6dg53r01NSK1jU-Rw')"><b>test</b>.de
- Shop - Stiftung Warentest</a>

 
Nov 26, 2007
ben rigby 3 posts

Topic: Ideas and script requests / Cross-post to Delicious & Typepad, From Google Reader. 2 Clicks

I wonder if the Google Reader+del.icio.us script can be easily modified to cross-post to Typepad...

 
Nov 26, 2007
ben rigby 3 posts

Topic: Ideas and script requests / Cross-post to Delicious & Typepad, From Google Reader. 2 Clicks

Hi. I can't seem to find this anywhere - but pls let me know if something like this already exists.

I'd like to have an easy way to post to my blog, my commentary about a given web page, along with a link to that web page. And to simultaneously post to delicious.

There are several tools that get somewhere close, but none let me post commentary - which is the heart of what i'd like to do. So that I can be browsing the web - or my news reader - and post some commentary about an article to my blog in 2 clicks (using the delicious firefox add-on).

The method I propose is:
* create a new entry on delicious. being sure to fill out the "notes" area

* the notes are then posted to one's blog as the body of the post, followed by the link to the web page.

* the system that grabs delicious data will only grab entries that specify a keyword tag (eg: "blogpost") and the next tag will map to a category in the blog. (eg: "blogpost, NewsCommentary").

This would make browsing and blogging much more seamless. Anyone seen anything like this? Don't know if it can be done with Greasemonkey - might need some sort of cron that bridges the delicious and various blogging apis?

Thoughts?

 
Nov 26, 2007
Raffles 146 posts

Topic: Script development / Gmail - class names

It looks like they don't change, but you don't need to use them, since Google have very nicely provided this:

http://code.google.com/p/gmail-greasemonkey/wik...

 
Nov 26, 2007
gollum 183 posts

Topic: Script development / onerror detection

Thanks @Descriptor, I'd appreciate if someone else could duplicate this as it's really got me scratching my head. Went from an investigation into onerror, to now being narrowed down to something about the two test cases above. It just seems weird that an error can be "forced" by commenting out the 'IF' test - as in the latter example.

I understand that because of the very nature of phpbb sites (deeply nested - table only pages) that I will never entirely eliminate the flicker problem.

Though, (and at the risk of repeating myself) I would still expect to be able to manipulate the DOM and handle any programmatic errors gracefully - not just trap them and hope the user understands the GM limitations on error handling.

 
Nov 26, 2007
Descriptor 851 posts

Topic: Userscripts.org discussion / won't install

Try searching the Google group greasemonkey-users

http://groups.google.com/group/greasemonkey-use...

Which is mentioned in this post - Use the mailing lists for extension issues - I know that isn't the most intuitive subject and it's not posted in every thread.

 
Nov 26, 2007
Descriptor 851 posts

Topic: Ideas and script requests / Correct Google URL Redirects

I don't use iGoogle but I think there's an option to "not remember search results" or something like that, it was mentioned in one of those discussions.
Since you use iGoogle there are two issues - click monitoring and link rewriting.

I don't really want to create an account to see what they do to links, so I don't know for sure. But either you can disable it in your preferences, or on the search results page, or try CustomizeGoogle, or try the script Mikado posted which will rewrite links (but a bit "wordy" I think). Or you may actually want this in order to use the iGoogle features. I can't suggest anything since I can't see what they do.

If you don't want them to monitor your clicks, as they do to all Firefox users (and maybe other browsers), then you want to somehow disable that function. window.clk is the function I saw and the first line of code I posted causes that function to do nothing, at least until they change it. This doesn't remove the "onmousedown" event, which may be used for something else. You can remove the "onmousedown" attribute, but they could later define some other event or the same event another way.

There's no doubt a better way to write a script, but it depends on what you want to do - always prevent the redirects or prevent the click tracking, or both.

 
Nov 26, 2007
Yog 21 posts

Topic: Userscripts.org discussion / won't install

So, there is no help for me? doom and despair?

 
Nov 26, 2007
Descriptor 851 posts

Topic: Userscripts.org discussion / Identical scripts...

Look what these morons are doing... http://userscripts.org/forums/1/topics/1350 [Error in Script - Help]

This type of script inclusion will, among other things, end up shutting this site down. I hope there's some way to stop this kind of abuse. The site should probably check the referrer.

 
Nov 26, 2007
Descriptor 851 posts

Topic: Script development / onerror detection

I do visit very large forums that take a long time to load - it has little to do with your connection speed but more to do with the forum's speed - as the page is dynamic and the server has to piece it together. You can tell by scrolling to the bottom of the page to see if the footer has been loaded yet (CTRL+End). It is probably more apparent if you are downloading something or on a slow connection, I noticed this more when I was on dial-up. Also the preferences for number of connections and number of connections per server and pipelining effect this.

I see a noticeable "flicker" when using Greasemonkey on these sites, often images start loading before the page is fully loaded and my script can remove them, but I haven't noticed this type of error mentioned. I will watch for it or see if I can duplicate it.

 
Nov 26, 2007
Nyks 70 posts

Topic: Ideas and script requests / Correct Google URL Redirects

In the last 40 minutes i tried out to deactivate GM-Skripts and extensions.

But then, I found out, that its none of that.
The thing is: I'm permanently logged in on google.de - i occasionally use iGoogle-Services, so its comfortable to stay login.
As soon, as I "logoff", the redirects on search-results are away.

Ok, I think, I will some of the scripts u offered here in this thread. Which one? :D
What does "unsafeWindow.clk = function(){ return true; }", what does it change?

 
Nov 26, 2007
Descriptor 851 posts

Topic: Ideas and script requests / Correct Google URL Redirects

There are lots of ways to disable this in Greasemonkey...

Redefine the function

unsafeWindow.clk = function(){ return true; }

or Remove mousedown events...

for(var i=0; i < document.links.length; i++){
  document.links[i].removeAttribute('onmousedown');
}

or use the SpiderMonkey built-in method (according to wiki)

Array.forEach(document.links, function(link){ link.removeAttribute('onmousedown') });

 
Nov 26, 2007
Nyks 70 posts

Topic: Ideas and script requests / Correct Google URL Redirects

Thanks for the replies.

No, that are not ads. That are the normal search results (btw, using Adblock plus, i dont see the ads).
And, the Google-Toolbar i havent installed.

But: I tested this with Internet Explorer and with a clean Firefox-Profile ... and there are no redirects. So, I guess, this is made by one of my numerous extensions or one of my GM-Scripts.

Maybe it is a google-affinility-link?!