<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Chrome on ZeroSharp</title><link>https://www.zerosharp.com/blog/categories/chrome/</link><description>Recent content in Chrome on ZeroSharp</description><generator>Hugo</generator><language>en-gb</language><copyright>Copyright © 2012–{year} Robert Anderson</copyright><lastBuildDate>Mon, 16 May 2016 13:51:00 +0100</lastBuildDate><atom:link href="https://www.zerosharp.com/blog/categories/chrome/index.xml" rel="self" type="application/rss+xml"/><item><title>An XAF workaround for 'Prevent this page from creating additional dialogs.'</title><link>https://www.zerosharp.com/an-xaf-workaround-for-prevent-this-page-from-creating-additional-dialogs-dot/</link><pubDate>Mon, 16 May 2016 13:51:00 +0100</pubDate><guid>https://www.zerosharp.com/an-xaf-workaround-for-prevent-this-page-from-creating-additional-dialogs-dot/</guid><description>&lt;p&gt;Both Chrome and Firefox have a &amp;lsquo;feature&amp;rsquo; which allows a user to ignore future calls to &lt;code&gt;confirm()&lt;/code&gt;. Once this has been checked, any subsequent calls to &lt;code&gt;confirm()&lt;/code&gt; return false immediately without showing the window.&lt;/p&gt;
&lt;p&gt;In XAF, this behaviour prevents the application from working correctly. For instance, it becomes impossible to confirm a deletion.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.zerosharp.com/images/blog/prevent-this-page-001.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;The following controller provides a work around. It injects some javascript into the page wrapping the call to &lt;code&gt;confirm()&lt;/code&gt;. The new code detects when the &lt;strong&gt;Prevent this page from creating additional dialogs&lt;/strong&gt; checkbox has been checked and returns true instead. The confirmation window still does not appear, but the XAF application works as if the user had pressed confirm instead of cancel.&lt;/p&gt;</description></item><item><title>A basic Chrome extension - analyze your chess.com games on lichess.org</title><link>https://www.zerosharp.com/a-basic-chrome-extension-analyze-your-chess-dot-com-games-on-lichess-dot-org/</link><pubDate>Fri, 04 Mar 2016 17:41:00 +0100</pubDate><guid>https://www.zerosharp.com/a-basic-chrome-extension-analyze-your-chess-dot-com-games-on-lichess-dot-org/</guid><description>&lt;p&gt;I&amp;rsquo;ve been trying to get better at chess by playing on &lt;a href="http://www.chess.com"&gt;chess.com&lt;/a&gt;. I often analyse my games with the help of a computer to see where I made mistakes. My favourite way of doing this is to make use of &lt;a href="http://lichess.org"&gt;Lichess.org&lt;/a&gt;&amp;rsquo;s import functionality. The latest version of chess.com has greatly improved its own post game analysis, but I still much prefer Lichess&amp;rsquo;s. So I would often download the finished game in pgn and upload it to Lichess.&lt;/p&gt;</description></item></channel></rss>