Skip to content

Instantly share code, notes, and snippets.

@yusufusta
Last active July 7, 2023 08:35
Show Gist options
  • Save yusufusta/d2556ee2e92a31393ae10644c026a3e3 to your computer and use it in GitHub Desktop.
Save yusufusta/d2556ee2e92a31393ae10644c026a3e3 to your computer and use it in GitHub Desktop.
eDevlet Auto Refresh
// ==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