Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Twitter F5 hack
- // @namespace *
- // @include https://twitter.com/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @version 1
- // ==/UserScript==
- (function() {
- $(document).ready(function(){
- $("html").keydown(function(event) {
- if (event.which == 116) {
- location.reload();
- event.preventDefault();
- }
- });
- });
- })();
Add Comment
Please, Sign In to add comment