MightyPork

GreaseMonkey Twitter F5 hack

Jul 31st, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.49 KB | None | 0 0
  1. // ==UserScript==
  2. // @name        Twitter F5 hack
  3. // @namespace   *
  4. // @include     https://twitter.com/*
  5. // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  6. // @version     1
  7. // ==/UserScript==
  8.  
  9. (function() {
  10.  
  11.     $(document).ready(function(){
  12.    
  13.         $("html").keydown(function(event) {
  14.             if (event.which == 116) {
  15.                 location.reload();
  16.                 event.preventDefault();
  17.             }
  18.         });
  19.        
  20.     });
  21.    
  22. })();
Add Comment
Please, Sign In to add comment