Last active
July 7, 2023 08:35
-
-
Save yusufusta/d2556ee2e92a31393ae10644c026a3e3 to your computer and use it in GitHub Desktop.
eDevlet Auto Refresh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name eDevlet Auto Refresh | |
// @namespace Violentmonkey Scripts | |
// @match https://www.turkiye.gov.tr/btk-imei-kaydet | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 07.07.2023 11:01:01 | |
// ==/UserScript== | |
console.log("Hata Görünce Otomatik Refresh -- eDevlet -- github.com/yusufusta"); | |
var ok = false; | |
setInterval(function () { | |
if (ok == false && Array.from(document.querySelectorAll(".errorContainer")).length > 0 && Array.from(document.querySelectorAll(".errorContainer"))[0].style.cssText != "display: none;") { | |
ok = true; | |
console.log("Hata Tespit Edildi -- Refresh") | |
window.location.reload(); | |
return; | |
} | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment