Page 1 of 1

surrogates not working in "problem loading page" situations

Posted: Wed May 23, 2012 3:54 pm
by TooCrooked
there is a site i visit that likes to have connection problems. so i've written surrogates to continually ask for the information when information isn't loaded in a reasonable amount of time. the problem is, eventually i start getting connection resets which trigger firefox's "problem loading page" pages. the thing is, the URL is still technically attached to the site i'm at, so why won't surrogates work here? i can't get a simple "alert" to run whenever this page appears. what's the problem!?

Re: surrogates not working in "problem loading page" situati

Posted: Wed May 23, 2012 10:37 pm
by Giorgio Maone
The problem is that on error pages, while window.location is the URL you can see in the address bar, document.URL and document.documentURI (which are the ones used for surrogate matching) are something like

about:neterror?e=dnsNotFound&u=http%3A//www.broken-site.com/&c=UTF-8&d=Firefox% ... n-site.com.

Re: surrogates not working in "problem loading page" situati

Posted: Fri May 25, 2012 12:20 am
by Thrawn
This situation might be a bit more than surrogates were designed for...maybe try looking at Greasemonkey instead?

Re: surrogates not working in "problem loading page" situati

Posted: Fri May 25, 2012 2:19 pm
by TooCrooked
i've tested and failed, but is it possible to trap "about:neterror"?

Re: surrogates not working in "problem loading page" situati

Posted: Fri May 25, 2012 9:44 pm
by Giorgio Maone
No, sorry.

Re: surrogates not working in "problem loading page" situati

Posted: Sat May 26, 2012 12:15 am
by Tom T.
Agree with Thrawn: Surrogate Script run *in place of* another (privacy-invasive) script. They're not stand-alones.

It seems that if you're at that skill level, you could write your own script (mini-add-on?) that if the error message described by Giorgio is received, the browser is to send the request again. Some limit on number of tries, so you don't get in an infinite loop.

btw, there is one such tool already built into Firefox, but it does require a click to activate. It's called the "Try Again" button. ;)

Re: surrogates not working in "problem loading page" situati

Posted: Mon May 28, 2012 3:26 pm
by TooCrooked
Tom T. wrote: if the error message described by Giorgio is received, the browser is to send the request again.
how perceptive of you to restate what i said i was already trying to do. did that take you a long time to formulate?
Tom T. wrote:btw, there is one such tool already built into Firefox, but it does require a click to activate. It's called the "Try Again" button.
are you stupid? was this dumb comment even necessary? that's a rhetorical question; the answer is no. instead of adding any useful information like the other posters, all you've done is add useless commentary about overly-obvious information that was already alluded to or directly mentioned in the thread.

thanks to everyone else for giving clarification and providing useful information.

Re: surrogates not working in "problem loading page" situati

Posted: Tue May 29, 2012 5:03 am
by Tom T.
TooCrooked wrote:
Tom T. wrote: if the error message described by Giorgio is received, the browser is to send the request again.
how perceptive of you to restate what i said i was already trying to do. did that take you a long time to formulate?
Tom T. wrote:btw, there is one such tool already built into Firefox, but it does require a click to activate. It's called the "Try Again" button.
are you stupid? was this dumb comment even necessary? that's a rhetorical question; the answer is no. instead of adding any useful information like the other posters, all you've done is add useless commentary about overly-obvious information that was already alluded to or directly mentioned in the thread.

thanks to everyone else for giving clarification and providing useful information.
You are certainly free to disagree with any of my posts (or anyone else's), or even on their usefulness, but please read Forum Rules: You must do so in a civil manner that does not directly attack or insult the person. "Stupid" and "dumb" definitely violate that.

Banned for 7 days.
Or you may come here as a guest, preferably with the same IP so that there is evidence that it's you, apologize for the tone of your remarks, and agree to read and follow the Forum Rules in all future posts, in which case, the ban will be lifted.

Or you can come back with further hostility, and be banned permanently. Your choice.

Re: surrogates not working in "problem loading page" situati

Posted: Thu Jun 07, 2012 1:56 am
by TooCrooked
lol so much for your weakness. i didn't even check this thread until today
are you stupid?
asking "if you're stupid" is different than saying "you're stupid". it's an attack only if you're soft and easily offended.
was this dumb comment even necessary
i said the comment was dumb, not you. your deep-seeded bitterness is a trait that touchy people cannot help but to exhibit as you have.

please make the ban permanent; it will likely be the only way you'll be able to sleep tonight!! i hope it helps you psychologically!!!!!

APOLOGY:

first of all, i need this site about once a blue moon. luckily, you just have ban rights, but are unable to withhold any useful, helpful information because you lack it (as evidenced by your postings). therefore, your psuedo power is useless against me. i assign my router a different mac, i get a different ip, or i proxy. either way, sergio is gracious and discerning and relevant enough to handle my situations. umad, bro?

you have proven to be of no use to me and therefore wield nothing of use. i certainly wish you had yielded knowledge, but as your posts indicate, i was barking up the wrong tree in your case!!

oh, and deleting a post (or editing it) is an extreme sign of insecurity. notice, i haven't once labeled you at all. all i've done is compare actions to their genesis.

Re: surrogates not working in "problem loading page" situati

Posted: Thu Jun 07, 2012 4:03 am
by Thrawn
@TooCrooked:

I see your true colors shinin' through,
I see your true colors, and that's why they'll block you,
So don't hesitate; get up and go,
Your true colors, true colors, aren't welcome here, under Giorgio...

I'm not a moderator, but I've reported you to them, and they're fairly efficient :).
Btw, feel free to come back under a different name and IP. If you change your ways and speak respectfully, you'll be welcome, and if not, you'll be blocked again. Cheers! :mrgreen:

Re: surrogates not working in "problem loading page" situati

Posted: Thu Jun 07, 2012 8:51 pm
by GµårÐïåñ
TooCrooked wrote:first of all, i need this site about once a blue moon. luckily, you just have ban rights, but are unable to withhold any useful, helpful information because you lack it (as evidenced by your postings). therefore, your psuedo power is useless against me. i assign my router a different mac, i get a different ip, or i proxy. either way, sergio is gracious and discerning and relevant enough to handle my situations. umad, bro?
I don't know who Sergio is, but you have been rude for the sake of being rude and without cause and no matter what you call it or how you try to spin it, you deserve a ban and we have tolerated quite a bit already. You obviously lack class and etiquette and that is something that can only be tolerated so much.
you have proven to be of no use to me and therefore wield nothing of use. i certainly wish you had yielded knowledge, but as your posts indicate, i was barking up the wrong tree in your case!!
If you find no use, then take your business elsewhere, you came to us, not the other way around and if you don't need us, then we'd be glad to be rid of you. You can always post anonymously if you choose to continue trolling.
oh, and deleting a post (or editing it) is an extreme sign of insecurity. notice, i haven't once labeled you at all. all i've done is compare actions to their genesis.
You can call it what you want, but given how we allow freedom to post anonymously, we have nothing to hide and accommodate more than some people deserve, namely you as an example. Some posts deserve being edited and specially when someone like you abuses the patience of volunteers trying to help you. If you come here to start something, then you will be edited, despite our fundamental belief in free speech. This is a privately owned site and we have extended all due respect to you, undeserving so it seems. So this matter is handled by ME and you can take up with me if you wish. I served for your right to be you, so you are welcome to behave as badly as you want but consequences are real whether you agree with them or not. I don't flinch and I have dealt with worse than you, so bring it.