Advertisement
Guest User

WIFI.ID LOGIN

a guest
Sep 19th, 2017
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        wifi.id auto login by ewwink
  3. // @namespace   cekpr.com
  4. // @description wifi.id auto login by ewwink
  5. // @include     http://welcome2.wifi.id/wifi.id-wag/default/*
  6. // @include     http://welcome2.wifi.id/wifi.id-wag/spin/*
  7. // @version     2
  8. // @grant       none
  9. // ==/UserScript==
  10.  
  11. /////////////////////////////////////////////////////////////////////////////////////////////////
  12. //// memodifikasi script ini bebas dengan catatan tidak menghilangkan credit aslinya, trims. ////
  13. ////////////////////////////////////////////////////////////////////////////////////////////////
  14.  
  15.  
  16. //////// edit Username & Password @Wifi.id dibawah ini  /////////
  17. var username = '1111111111';  // Username SPIN Wifi.id
  18. var password = '2222222222';  // Password SPIN Wifi.id
  19.  
  20. /////// edit Login type @wifi.id kamu, valid value: SPIN, INTEL, SPEEDY, FLEXI //////
  21. var logintype = 'SPEEDY'; Type akun, SPIN, INTEL, SPEEDY,FLEXI
  22.  
  23. /////// STOP, kebawah jgn edit lagi kecuali ente tau //////////
  24.  
  25. if (username == '1111111111')
  26. {
  27.   alert('Username dan Password @wifi.id belum ditetapkan,\n silahkan ubah terlebih dahulu scriptnya');
  28.   return false;
  29. }
  30. else if (window.location.href.match('welcome2.wifi.id/wifi.id-wag/default/'))
  31. {
  32.   if (logintype == 'SPIN')
  33.   {
  34.     window.location = window.location.href.replace('default', 'spin');
  35.   }
  36.   if (logintype == 'INTEL')
  37.   {
  38.     window.location = window.location.href.replace('default', 'intel');
  39.   }
  40.   if (logintype == 'SPEEDY')
  41.   {
  42.     window.location = window.location.href.replace('default_olo1', 'speedy');
  43.   }
  44.   if (logintype == 'FLEXI')
  45.   {
  46.     window.location = window.location.href.replace('default_olo1', 'flexizone');
  47.   }
  48. }
  49. else if (window.location.href.match('welcome2.wifi.id/wifi.id-wag/spin/'))
  50. {
  51.   document.getElementById('username-login').value = username;
  52.   document.getElementById('pass-login').value = password;
  53.   setTimeout(function ()
  54.   {
  55.     document.getElementsByClassName('imgbtn')[0].click();
  56.   }, 100);
  57.  
  58. }
  59. else if (window.location.href.match('welcome2.wifi.id/wifi.id-wag/intel/'))
  60. {
  61.   document.getElementById('inputUserName').value = username;
  62.   document.getElementById('inputPassword').value = password;
  63.   setTimeout(function ()
  64.   {
  65.     document.getElementById('button').click();
  66.   }, 100);
  67. }
  68. else if (window.location.href.match('welcome.indonesiawifi.net/wifi.id/speedy/'))
  69. {
  70.   document.getElementById('user_id').value = username;
  71.   document.getElementById('pass_id').value = password;
  72.   setTimeout(function ()
  73.   {
  74.       $('#login-form').submit();
  75.     //document.forms['login-form'].submit();
  76.   }, 100);
  77. }
  78. else if (window.location.href.match('welcome.indonesiawifi.net/wifi.id/flexizone/'))
  79. {
  80.   document.getElementById('username').value = username;
  81.   document.getElementById('password').value = password;
  82.   setTimeout(function ()
  83.   {
  84.     document.getElementById('submit').click();
  85.   }, 100);
  86. }
  87.  
  88.  
  89. /////////////////////////////////////////////////////////////////////////////////////////////////
  90. //// memodifikasi script ini bebas dengan catatan tidak menghilangkan credit aslinya, trims. ////
  91. ////////////////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement