auto_ref_thaieibvn

auto ref = thaieibvn

  1. // ==UserScript==
  2. // @name auto_ref_thaieibvn
  3. // @description auto ref = thaieibvn
  4. // @namespace *
  5. // @version 0.2
  6. // @include **
  7.  
  8. // @grant none
  9.  
  10. // ==/UserScript==
  11. function doText() {
  12. var url =window.location.href;
  13. if (url.indexOf('?ref=thaieibvn')==-1 && url.length<30){
  14. window.location.assign(url+'/?ref=thaieibvn');
  15. //alert( );
  16. }
  17.  
  18. }
  19.  
  20. doText();
  21. //var myInterval = setInterval(doText, 500);
  22.