Greasy Fork 支持简体中文。

auto-open

auto_open

目前為 2016-03-09 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name auto-open
  3. // @namespace www.juniper.net
  4. // @version 1.5
  5. // @description auto_open
  6. // @author Yan
  7. // @include http*://*pvs.jnpr.net/jss-ciat/app/home*
  8. // @include http*://*pvs.juniper.net/jss-ciat/app/home*
  9. // @grant none
  10. // ==/UserScript==
  11. function delete_cookie(name) {
  12. document.cookie = name +'=; Path=/jss-ciat/app; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
  13. }
  14.  
  15. function openALLPR_onthisPage () {
  16. delete_cookie('pWrD4jBo');
  17. Table_all = window.top.frames[9].document.getElementsByClassName('customSort')[0];
  18. for (var i=1, len=Table_all.rows.length; i<len-1; i++) {
  19. ELEMENT = Table_all.getElementsByTagName('tr')[i].getElementsByTagName('td')[1].getElementsByTagName('a');
  20. ELEMENT[0].click();
  21. ELEMENT[1].click();
  22. };
  23. };
  24. if (self == top) {
  25. LstBun = document.getElementById('myslidemenu').childNodes[1].lastChild;
  26. bun_NEW = window.frames[9].document.createElement("input");
  27. bun_NEW.type = "button";
  28. bun_NEW.value = "Go!";
  29. bun_NEW.name = 'DE';
  30. bun_NEW.style.cssText = "height: 30px; cursor:pointer; color:#f3f3f3; border-top-left-radius: 10px; border-bottom-right-radius: 10px; width: 45px; background-color: rgb(92, 184, 92); border-color: rgb(76, 174, 76);";
  31. bun_NEW.onclick = openALLPR_onthisPage;
  32. LstBun.parentNode.appendChild(bun_NEW);
  33. };
  34.  
  35.