Advertisement
Roktaal

Untitled

Jan 13th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. // ==UserScript==
  2. // @name eRepEasyMsg
  3. // @namespace http://userscripts.org/users/412969
  4. // @description eRepublik easy messaging script
  5. // @include http://www.erepublik.com/*/main/messages-compose/*
  6. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
  7. // ==/UserScript==
  8.  
  9. function Main() {
  10. var textSubject = 'Test';
  11. var textMessage = 'Test';
  12.  
  13. $('#message_form').append('<a id="dodaj" href="#" title="Dodaj" class="fluid_blue_dark_medium" style="margin-left: 15px;"><span class="bold">Dodaj</span></a>');
  14.  
  15. $('#dodaj').click(function(){
  16. $('#citizen_subject').val(textSubject);
  17. $('#citizen_message').val(textMessage);
  18. });
  19. }
  20.  
  21. window.addEventListener('load', function() {
  22. var checker = setInterval(function() {
  23. if(typeof ($ = jQuery.noConflict()) != 'undefined') {
  24. clearInterval(checker);
  25.  
  26. Main();
  27. }
  28. }, 100);
  29. }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement