ZhoubaWiki:BookmarkletSkipDialog

From ZhoubaWiki
Revision as of 16:26, 22 May 2021 by Garak (talk | contribs) (Created page with "<pre> // ==UserScript== // @name Skip seznam change password // @namespace Seznam // @include https://login.szn.cz/* // @version 1 // @grant none // ==/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
// ==UserScript==
// @name        Skip seznam change password
// @namespace   Seznam
// @include     https://login.szn.cz/*
// @version     1
// @grant       none
// ==/UserScript==

(function() {
  to = window.setInterval(forward, 500);
   
  function forward(){
      var url = window.location.href;
      url = url.toString();
      var result = url.match(/weak-password/);
      if (result.length === 0) {
        return;
      }
      if (result[0] === 'weak-password') {
        //console.log('match');
        window.clearInterval(to);
        
        window.location.href = "/continue";            
      }
   }
  
})();