Advertisement
SalimFadhil

new Player ID

Aug 5th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. // ==UserScript==
  2. // @name ID - Player New
  3. // @namespace http://tampermonkey.net/
  4. // @version 3.0v
  5. // @description This is Bot for change the last path in url(line) after (=) ^_^ I hope you enjoy,, By: SalimFadhil
  6. // @author Abu.Rajih
  7. // @match https://ae.twstats.com/*
  8. // @match ae.twstats.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. /*
  13. _______________________________________________________________________________
  14. WriterBotIs : Abu.Rajih
  15. DateWroteScript: 06-08-2018
  16. VersionScriptIs: 3.0v
  17. URL: https://forum.tribalwars.ae/index.php?members/abu-rajih.40926/
  18. _______________________________________________________________________________
  19. */
  20.  
  21. (function(){
  22. /* this code for get the URL */
  23. var url = window.location.href;
  24.  
  25. /* this code for get the ID from last URL */
  26. var oldID = url.substring(url.lastIndexOf('=')+1);
  27.  
  28. /* this code for create time for going to new URL */
  29. setInterval(function(){
  30.  
  31. /* this code for get ID from last link and it will add one for getting new ID */
  32. var NewID = parseInt(oldID) + parseInt(1);
  33.  
  34. /* this code for create new URL = oldID + 1 = NewID */
  35. location.href = 'ae.twstats.com/ae41/index.php?page=player&id=' + NewID;
  36.  
  37. /* this code after 10 seconds will */
  38. },10000);
  39.  
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement