SSMMS Timer Stopper

try to take over the world!

目前为 2019-04-22 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name SSMMS Timer Stopper
  3. // @namespace https://app.captchas.io/ssmms/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @include http://onlinebooking.sand.telangana.gov.in/*
  8. // @include https://onlinebooking.sand.telangana.gov.in/*
  9. // @grant GM_getValue
  10. // @grant GM_setValue
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if(window.location.href.indexOf("Order/CustomerHome.aspx") !=-1) {
  16. console.log("Inside the order page");
  17. var alreadyOpened = JSON.parse(GM_getValue ("alreadyOpened", null) );
  18. console.log('already opened: '+ alreadyOpened);
  19. if(!alreadyOpened) {
  20. console.log("Not already opened!");
  21. GM_setValue ("alreadyOpened", JSON.stringify (true) );
  22. // javascript:__doPostBack('ctl00$CustomerOrders','');
  23. document.querySelector(".menuH").querySelectorAll("li")[0].querySelector("a").click();
  24. }
  25. } else {
  26. GM_setValue ("alreadyOpened", JSON.stringify (false) );
  27. console.log("Inside the login page page");
  28. console.log(JSON.parse(GM_getValue ("alreadyOpened", null) ));
  29. }
  30. })();