Greasemonkey script on Firefox network error page -


i want run greasemonkey script on firefox network error pages, such (but not limited to) one:

alt text

can chrome:// urls? if so, they? if not, there way?

well, on right track. 2 things:

  1. network error pages begin about:neterror, not chrome://. if try access ww.example.com (missing w) redirected about:neterror?e=dnsnotfound&u=http%3a//ww.example.com/&c=utf-8&d=firefox%20can%27t%20find%20the%20server%20at%20ww.example.com
  2. you cannot // @include about:neterror*.

but since know url format, can

// @include * 

and check:

if (document.documenturi.search('about:neterror') != -1) {     dostuffonneterror(); } 

thanks hints, brock.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -