Skip to content

Instantly share code, notes, and snippets.

@berkantkz
Last active December 4, 2021 15:47
Show Gist options
  • Save berkantkz/a9a3bcab0a4532c8d268fbbe5d6ecfdb to your computer and use it in GitHub Desktop.
Save berkantkz/a9a3bcab0a4532c8d268fbbe5d6ecfdb to your computer and use it in GitHub Desktop.
Tamper monkey için GSBWIFI otomatik giriş betiği.
// ==UserScript==
// @name KYKWIFI Otomatik Giriş
// @namespace http://github.com/berkantkz/
// @version 0.1
// @description KYKWIFI otomatik giriş
// @author berkantkz
// @match https://wifi.gsb.gov.tr/login.html*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
function ask() {
var answer = window.confirm("Giriş yap?");
if (answer) {
document.getElementsByClassName('btn')[0].click();
}
}
setTimeout(() => ask(), 5000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment