Enhancement for AJAX sites via google loophole
Enhancement for AJAX sites via google loophole
Google has published a specification for allowing ajax sites to load content on a single page through javascript, but still be crawlable. Basically there is a rewrite rule you can apply to fragment links to get an actual http link to the content.
https://code.google.com/web/ajaxcrawlin ... arted.html
Lots of sites (twitter for example) seem to be supporting this. If noscript adds this feature, it could let us browse such sites with javascript turned off.
https://code.google.com/web/ajaxcrawlin ... arted.html
Lots of sites (twitter for example) seem to be supporting this. If noscript adds this feature, it could let us browse such sites with javascript turned off.
Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12pre) Gecko/20110210 Firefox/4.0b12pre
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enhancement for AJAX sites via google loophole
Very interesting, thank you.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enhancement for AJAX sites via google loophole
Please check latest development build.
See http://lifehacker.com/#!5465246/mozilla ... an-malware for a working example.
See http://lifehacker.com/#!5465246/mozilla ... an-malware for a working example.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Re: Enhancement for AJAX sites via google loophole
Apparently not working with the current 4.0 beta:Giorgio Maone wrote:See http://lifehacker.com/#!5465246/mozilla ... an-malware for a working example.
Code: Select all
[NoScript XSS] xss.reason.ReferenceError: qs is not defined --- ([object XPCWrappedNative_NoHelper],"http-on-modify-request",null)@chrome://noscript/content/RequestWatchdog.js:84
loadURIWithFlags("http://lifehacker.com/#!5465246/mozilla-warns-of-two-firefox-extensions-containing-trojan-malware",0,[object XPCWrappedNative_NoHelper],"UTF-8",(void 0))@chrome://global/content/bindings/browser.xml:193
addTab("http://lifehacker.com/#!5465246/mozilla-warns-of-two-firefox-extensions-containing-trojan-malware",[object XPCWrappedNative_NoHelper])@chrome://browser/content/tabbrowser.xml:1326
loadOneTab("http://lifehacker.com/#!5465246/mozilla-warns-of-two-firefox-extensions-containing-trojan-malware",[object XPCWrappedNative_NoHelper])@chrome://browser/content/tabbrowser.xml:1093
openLinkIn("http://lifehacker.com/#!5465246/mozilla-warns-of-two-firefox-extensions-containing-trojan-malware","tab",[object Object])@chrome://browser/content/utilityOverlay.js:237
handleLinkClick([object MouseEvent],"http://lifehacker.com/#!5465246/mozilla-warns-of-two-firefox-extensions-containing-trojan-malware",[object Proxy])@chrome://browser/content/browser.js:10498
contentAreaClick([object MouseEvent],false)@chrome://browser/content/browser.js:10461
onclick([object MouseEvent])@chrome://browser/content/browser.xul:1
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
Re: Enhancement for AJAX sites via google loophole
neither in 3.6.13dhouwn wrote:Apparently not working with the current 4.0 beta:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enhancement for AJAX sites via google loophole
Yep, there's a bug which slipped in 10 seconds before release and I'm fixing right now.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enhancement for AJAX sites via google loophole
Fixed in latest development build
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Re: Enhancement for AJAX sites via google loophole
Awesome. I'm glad you liked the idea, and I'm amazed you implemented it so fast.
Lifehacker article permalinks work, and that's pretty excellent. (The homepage is still broken though, I guess it uses javascript to populate it's frame)
Excellent work! I'll be pitching a few bucks towards your beer fund.
Lifehacker article permalinks work, and that's pretty excellent. (The homepage is still broken though, I guess it uses javascript to populate it's frame)
Excellent work! I'll be pitching a few bucks towards your beer fund.
Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12pre) Gecko/20110216 Firefox/4.0b12pre
Re: Enhancement for AJAX sites via google loophole
On this new style ajax site, the next post click fails when doubleclick.net is blocked. The quickest way to repro is on gawker.com.
Fx 3.6.13, NS 2.0.9.9rc2, new profile
Fx 3.6.13, NS 2.0.9.9rc2, new profile
- go to http://gawker.com/
- allow gawker.com, gawkerassets.com
- after refresh, the content should appear, click "NEXT POST" (bottom left corner)
- the ajax nav never fully completes, a couple of js errors are logged:
Code: Select all
Error: too much recursion Source File: http://fastcache.gawkerassets.com/assets/base.v10/static/base.v10.jqueryplugin.20110217.js Line: 6 Error: too much recursion Source File: http://fastcache.gawkerassets.com/assets/base.v10/static/base.v10.jquery.20110217.js Line: 16
- If you allow doubleclick.net at gawker.com, "NEXT POST" ajax nav completes
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enhancement for AJAX sites via google loophole
It actually works for me. Maybe they already fixed it?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Re: Enhancement for AJAX sites via google loophole
No, still happening with 100% consistency on a new profile, the content loads, but remains covered by a semi-transparent overlay with a spinner.Giorgio Maone wrote:It actually works for me. Maybe they already fixed it?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Re: Enhancement for AJAX sites via google loophole
Can't reproduce, "NEXT POST" works fine, some exceptions like the following get logged though:
BTW, I have subdomain-matching turned on and just allowed gawker.com and fastcache.gawkerassets.com.
Code: Select all
Error: jQuery(".t_" + d.thread_id).html(d.content) is null
Source File: http://fastcache.gawkerassets.com/assets/base.v10/static/base.v10.widget.20110217.js
Line: 42
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110220 Firefox/4.0b12pre
Re: Enhancement for AJAX sites via google loophole
They changed their interface, there's no longer a next post button, but a list of posts. I can still repro by clicking on any post title. 2 "too much recursion" errors and it stays in this state:

To resolve, you have to allow doubleclick.net and also the script that doubleclick in turn loads 2mdn.net. It used to take just doubleclick. That you can't repro is an indication that there probably isn't a real dependency on doubleclick but something timing sensitive, can you perhaps try on your slower laptop?

To resolve, you have to allow doubleclick.net and also the script that doubleclick in turn loads 2mdn.net. It used to take just doubleclick. That you can't repro is an indication that there probably isn't a real dependency on doubleclick but something timing sensitive, can you perhaps try on your slower laptop?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Re: Enhancement for AJAX sites via google loophole
2. allow gawker.com, gawkerassets.com
Then I allowed an Object. *@http://gawker.com, I think it was.
After that, the links worked as expected.
After a Reset, a manual refresh may be needed.
Looks like sometimes a link will load fully, sometimes partially, sometimes opaque like your screenshot.
Also looks like they have an object which nukeanythingenhanced can zap to clear some "opaque" up.
(The double vertical scroll is totally weird.)
Then I allowed an Object. *@http://gawker.com, I think it was.
After that, the links worked as expected.
After a Reset, a manual refresh may be needed.
Looks like sometimes a link will load fully, sometimes partially, sometimes opaque like your screenshot.
Also looks like they have an object which nukeanythingenhanced can zap to clear some "opaque" up.
(The double vertical scroll is totally weird.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.18pre) Gecko/20110212 SeaMonkey/2.0.13pre
Re: Enhancement for AJAX sites via google loophole
Well, it looks like you can repro intermittently, for me it's consistent. When it's like in my screenshot, do you get the "too much recursion" errors in the console?therube wrote:Looks like sometimes a link will load fully, sometimes partially, sometimes opaque like your screenshot.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13