Skip to content

Instantly share code, notes, and snippets.

View NatkungZ's full-sized avatar

Tanat Perapaisarnsup NatkungZ

View GitHub Profile

Keybase proof

I hereby claim:

  • I am natkungz on github.
  • I am natkungz (https://keybase.io/natkungz) on keybase.
  • I have a public key ASAdqG4n9vBy-o8ptWJRhRmuz-hcTGpiw8ce2Ic-oKci0Qo

To claim this, I am signing this object:

@NatkungZ
NatkungZ / kmitl_nac_auth.js
Created February 15, 2017 10:11
NAC Authenticate auto script for KMITL
// ==UserScript==
// @name Login KMITL
// @namespace http://userscripts.org/users/useridnumber
// @include https://nac.kmitl.ac.th/dana-na/auth/url_default/welcome.cgi?p=failed
// @include https://nac.kmitl.ac.th/dana-na/auth/url_default/welcome.cgi*
// @include https://nac.kmitl.ac.th/dana-na/auth/welcome.cgi*
// @include https://nac.kmitl.ac.th/dana/home/infranet.cgi* // ==/UserScript==
function Check_Login() {
if (document.location.href == logedinURL) {
var new_obj = document.getElementById('liveclock2').childNodes[2].textContent;