Guest User

Untitled

a guest
Oct 13th, 2015
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @id             trip fix
  3. // @name           Trip fix
  4. // @version        1.0
  5. // @namespace      
  6. // @author        
  7. // @description    
  8. // @include        /^https?:\/\/2ch.hk\/*/
  9. // @run-at         window-load
  10. // @require https://code.jquery.com/jquery-2.1.4.min.js
  11. // ==/UserScript==
  12.  
  13.  
  14. var $input=$('#name');
  15.  
  16. if($input.size()){
  17.   var $qrInput=$input.clone();
  18.   $qrInput.attr('id', 'qr_name').attr('type', 'hidden');
  19.   $('#qr-postform').prepend($qrInput);
  20.   $input.on('keyup', function(){
  21.     $qrInput.val($input.val());
  22.   });
  23. }
Advertisement
Add Comment
Please, Sign In to add comment