Skip to content

Instantly share code, notes, and snippets.

@hillwah
Created April 27, 2018 02:40
Show Gist options
  • Save hillwah/2fc04c176b9640794d01f16c69b9ebb3 to your computer and use it in GitHub Desktop.
Save hillwah/2fc04c176b9640794d01f16c69b9ebb3 to your computer and use it in GitHub Desktop.
URBTIX Reload for Tampermonkey
// ==UserScript==
// @name URBTIX Reload
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://msg.urbtix.hk/
// @match http://busy.urbtix.hk/
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
// #to-main-btn
/*
setInterval(function(){
window.location="http://www.urbtix.hk/";
}, 1000);
*/
setInterval(function() {
var bt = document.getElementById('to-main-btn');
if (bt) {
if (!bt.disabled) {
javascript:exitPage();
}
}
}, 750);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment