EnderAlice

Google ClickJacking Killer

May 8th, 2014
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Google ClickJacking Killer
  3. // @namespace   alice
  4. // @description Googleの検索結果からクリックジャッキングを除去 ©2014 alice
  5. // @include     https://www.google.com/*
  6. // @include     https://www.google.co.*/*
  7. // @version     2
  8. // @grant       none
  9. // ==/UserScript==
  10.  
  11. window.setTimeout(killClickJacking, 1000);
  12. window.setInterval(killClickJacking, 2000);
  13.  
  14. function killClickJacking()
  15. {
  16.     var anchors = document.getElementsByTagName('A');
  17.     for(var i = 0; i < anchors.length; i++)
  18.     {
  19.         anchors[i].onmousedown = '';
  20.     }
  21. }
Add Comment
Please, Sign In to add comment