SSMMS Timer Stopper

try to take over the world!

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name SSMMS Timer Stopper
// @namespace https://app.captchas.io/ssmms/
// @version 0.1
// @description try to take over the world!
// @author You
// @include      http://onlinebooking.sand.telangana.gov.in/*
// @include      https://onlinebooking.sand.telangana.gov.in/*
// @grant    GM_getValue
// @grant    GM_setValue
// ==/UserScript==

(function() {
'use strict';
    if(window.location.href.indexOf("Order/CustomerHome.aspx") !=-1) {
        console.log("Inside the order page");
        var alreadyOpened = JSON.parse(GM_getValue ("alreadyOpened",  null) );
        console.log('already opened: '+ alreadyOpened);
        if(!alreadyOpened) {
            console.log("Not already opened!");
            GM_setValue ("alreadyOpened",  JSON.stringify (true) );
            // javascript:__doPostBack('ctl00$CustomerOrders','');
            document.querySelector(".menuH").querySelectorAll("li")[0].querySelector("a").click();
        }
    } else {
        GM_setValue ("alreadyOpened",  JSON.stringify (false) );
        console.log("Inside the login page page");
        console.log(JSON.parse(GM_getValue ("alreadyOpened",  null) ));
    }
})();