Advertisement
Kartom

GayRomeo & The Right to Rightclick

Nov 1st, 2012
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           GayRomeo & The Right to Rightclick ;-)
  3. // @namespace      http://gr-tools.justlep.net/
  4. // @description    Re-enables the rightclick on user pictures in gallery + single view
  5. // @include        http*://www.gayromeo.com/*/pix/popup.php*
  6. // @include        http*://www.gayromeo.com*mainpage.php?set=*
  7. // @include        http*://www.gayromeo.com*auswertung/album/*
  8. // @include        http*://www.planetromeo.com/*/pix/popup.php*
  9. // @include        http*://www.planetromeo.com*mainpage.php?set=*
  10. // @include        http*://www.planetromeo.com*auswertung/album/*
  11. // @include        http*://83.98.143.20/*/pix/popup.php*
  12. // @include        http*://83.98.143.20/*mainpage.php?set=*
  13. // @include        http*://83.98.143.20/*auswertung/album/*
  14. // @version $Revision: 1.3 $
  15. // @author LeP <gr-tools@justlep.net>
  16. // ==/UserScript==
  17. /**
  18.  * If you like this script, you may want to check the GR-Tools as well ;-)
  19.  * http://userscripts.org/scripts/show/33184
  20.  */
  21. (function() {
  22.     var w = top.wrappedJSObject || top,
  23.         fs = w.frames,
  24.         ds = [w.document];
  25.    
  26.     if (fs.length) {
  27.         for (var i=fs.length-1; i>=0; i--) {
  28.             var d = fs[i].document,
  29.                 img = d.getElementById('picture');
  30.             ds.push(d);
  31.             if (img) ds.push(img);
  32.         }
  33.     }
  34.     for (var i=ds.length-1; i>=0; i--) {
  35.         var o = ds[i];
  36.         o.onmousedown = null;
  37.         o.ondragstart = null;
  38.         o.oncontextmenu = null;
  39.     }
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement