html - Create Firefox addon to fix broken webpage on the fly -


at job use "central login" facility on internal webpages. whenever internal webpage requires authentication, forwards central login, , after logging in, sends page trying view.

the first line in html central login page starts this:

<!-- encoding=iso-8859-1; 

but never ends comment, means html code in whole document commented out. works fine in ie6 (which company standard - eek!), , used work in firefox, when upgraded firefox 4, no longer works (as shouldn't - following standards).

i have saved source , changed first line to:

<!-- encoding=iso-8859-1; --> 

and page display, since loaded file:///, can't submit credentials main server...

i hate using ie6, internal pages stuck because firefox renders empty page every time sent central login.

is possible create firefox addon (or greasemonkey script) modify html coming browser before gets rendered? see tons of examples of modifying html once loaded, can't find manipulate while loading it.

i guess i'm open other solutions besides addon, thing think of. also, not allowed use chrome or safari, out. , no, cannot talk person in charge of central login page , them change it. proxying difficult because of nature of page.

thanks in advance!

maybe local apache mod_proxy , mod_subsitute used this? derived example berkek.com:

<virtualhost *>   serveradmin postmaster@yourcorp.com   servername www.yourcompany.com   <proxy *>     order deny,allow   </proxy>   proxyrequests on   proxypass / http://www.yourcompany.com/   proxypassreverse / http://www.yourcompany.com/   addoutputfilterbytype substitute text/html   substitute "s|<!-- encoding=iso-8859-1;|<!-- encoding=iso-8859-1; -->|n" </virtualhost> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -