Skip to content

Monthly Archives: June 2008

Why destination-based popup blocking fails

Johnf mused about hav­ing fire­fox allow pop­ups based on des­ti­na­tion, rather than source. Here’s why it’s a non-triv­ial prob­lem. <script type=“text/javascript”> <!– // Sure­ly google should be an allow­able des­ti­na­tion, right? leetwin = window.open(‘http://www.google.com.au/’, ‘leetwin’); // Oth­er javascript stuff. // Nev­er gonna give you up. leetwin.location = ‘http://youtube.com/watch?v=Yu_moia-oVI’; –> </script>

Trying to detect the state of the caps-lock key in X

Before I begin, I know that a lot of peo­ple hate the caps lock key, and tend to remap it to do some­thing else. I am most emphat­i­cal­ly not one of those peo­ple. One of the first things I did when I bought my Eee was replace the oper­at­ing sys­tem it ships with. I’ve toyed […]