Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.67 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // ==UserScript==
  2. // @name Enhance Google Images
  3. // @version 1.00
  4. // @description Prevents window focus in Google Images (annoyance with multiple focusing tabs).
  5. // @author XP1 (https://github.com/XP1/)
  6. // @namespace https://gist.github.com/1101650/
  7. // @include http*://google.*/imgres*
  8. // @include http*://*.google.*/imgres*
  9. // ==/UserScript==
  10.  
  11. // <script>var a = document.getElementById('rf');a && a.contentWindow && a.contentWindow.focus();</script>
  12.  
  13. /*jslint browser: true, vars: true, white: true, maxerr: 50, indent: 4 */
  14. (function (opera)
  15. {
  16.     "use strict";
  17.  
  18.     opera.defineMagicVariable("a", function (currentValue)
  19.     {
  20.         return false;
  21.     }, null);
  22. }(window.opera));