Monday, 17. July 2006, 21:28:45
[user js] fix double compressed webpages
As some of you might know, there are out there, mis-configured webservers that host a joomla or phpbb web application, which internally compress their pages, is they're configured to do so. The problem arises when a incompetent webmaster sets but the web application, and the webserver software itself to compress content. Opera gets content compressed twice. !!!I've crafted a solution.
fix-gzipped-pages.js
Basically it re-fetches the current page, with a IE user agent string and Accept-Encoding header set to identity.
Then magic is needed to parse the responseText to a DOM tree.. because I ALL websites I've tested, responseXML ends up being always a empty document.... !
But big problem: it doesn't work in Opera 9 ! because buggy young Opera 9 refuses to run user script in garbage pages.
You may try the script in these urls.
http://www.siemens-mobiles.org/component/option,com_smf/Itemid,106/
http://www.metallicabb.com/forum/
I'd apreciate if someone could report the Opera 9 bug of not running the script.
Please post below more urls of websites that do this.
Meanwhile I've raised this issue to at the phpbb forums.
http://www.phpbb.com/phpBB/viewtopic.php?t=413337
Wednesday, 2. August 2006, 14:12:43
Bug:
In IE it search this image: http://www.siemens-mobiles.org/forum/Smileys/default/smile.gif but in Opera fixed page it search this: http://www.siemens-mobiles.org/component/option,com_smf/Itemid,106/forum/Smileys/default/smile.gif
In IE it search this image: http://www.siemens-mobiles.org/forum/Smileys/default/smile.gif but in Opera fixed page it search this: http://www.siemens-mobiles.org/component/option,com_smf/Itemid,106/forum/Smileys/default/smile.gif
Wednesday, 13. September 2006, 22:09:20 (edited)
Your fix doesn't detect this site: http://www.windowsinfo.eu/index.php?option=com_content&task=view&id=25&Itemid=43
You only need to change /%1F%u[\dabcdef]{4}%08/ to /%1F%(u[\dabcdef]{4}|8B)%08/
You only need to change /%1F%u[\dabcdef]{4}%08/ to /%1F%(u[\dabcdef]{4}|8B)%08/
Forums » Opera Community » General Opera topics » User JavaScript
