surrogates not working in "problem loading page" situations
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
surrogates not working in "problem loading page" situations
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!?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
- Giorgio Maone
- Site Admin
- Posts: 9528
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: surrogates not working in "problem loading page" situati
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.
about:neterror?e=dnsNotFound&u=http%3A//www.broken-site.com/&c=UTF-8&d=Firefox% ... n-site.com.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Re: surrogates not working in "problem loading page" situati
This situation might be a bit more than surrogates were designed for...maybe try looking at Greasemonkey instead?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: surrogates not working in "problem loading page" situati
i've tested and failed, but is it possible to trap "about:neterror"?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
- Giorgio Maone
- Site Admin
- Posts: 9528
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: surrogates not working in "problem loading page" situati
No, sorry.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Re: surrogates not working in "problem loading page" situati
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.
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.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/12.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: surrogates not working in "problem loading page" situati
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: if the error message described by Giorgio is received, the browser is to send the request again.
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.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.
thanks to everyone else for giving clarification and providing useful information.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Re: surrogates not working in "problem loading page" situati
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.TooCrooked wrote: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: if the error message described by Giorgio is received, the browser is to send the request again.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.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.
thanks to everyone else for giving clarification and providing useful information.
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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/12.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: surrogates not working in "problem loading page" situati
lol so much for your weakness. i didn't even check this thread until today
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.
asking "if you're stupid" is different than saying "you're stupid". it's an attack only if you're soft and easily offended.are you stupid?
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.was this dumb comment even necessary
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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Re: surrogates not working in "problem loading page" situati
@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!
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!

======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3370
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: surrogates not working in "problem loading page" situati
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.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?
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.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!!
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.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.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0