NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name auto_reload_nossa
// @namespace http://tampermonkey.net/
// @version 1.6
// @description try to take over the world!
// @author afr
// @include /https:\/{2}nossa.telkom.co.id\/maximo\/ui\/\?event=loadapp&value=startcntr&uniqueid=\d+&uisessionid=\d+&csrftoken=\S+/
// @include /https:\/{2}nossa.telkom.co.id\/maximo\/ui\/\?event=loadapp&value=startcntr&uisessionid=\d+&csrftoken=\S+/
// @icon https://www.google.com/s2/favicons?domain=co.id
// @updateURL https://openuserjs.org/meta/afr/auto_reload_nossa.meta.js
// @grant none
// @copyright 2021
// @license MIT
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==
(function () {
'use strict';
$('document').ready(() => {
if (Notification.permission !== 'granted') {
Notification.requestPermission();
}
var td = document.querySelectorAll('table')[22].querySelectorAll('td[style="padding-left:5px"]')
for (var i = 0; i < td.length; i++) {
if (/RADIOIP/i.test(td[i].innerText)) {
console.log(td[i].innerText)
const notif = new Notification('CekCek', {
body: td[i].innerText,
});
break
}
}
})
setInterval(() => {
const reload = document.querySelector("#mx132_anchor_1")
reload.click()
// console.log("reloaded")
}, 20000)
// Your code here...
})();