Advertisement
uaa

disable pmda pop-up

uaa
Oct 11th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. // ==UserScript==
  2. // @name disable pmda pop-up
  3. // @namespace www.uaa.org.uk
  4. // @description disable pmda pop-up
  5. // @include http://www.info.pmda.go.jp/
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. // thanks to http://www.squakmt.com/replacing_javascript/
  11.  
  12. var scriptCode = new Array();
  13.  
  14. scriptCode.push('function OpenWin(){ ');
  15. scriptCode.push(' // pop-up is disabled! ');
  16. scriptCode.push('} ');
  17.  
  18. var script = document.createElement('script');
  19. script.innerHTML = scriptCode.join('\n');
  20. scriptCode.length = 0;
  21.  
  22. document.getElementsByTagName('head')[0].appendChild(script);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement