UnblockNTCE

Remove IE restriction on NTCE website.

当前为 2022-09-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name UnblockNTCE
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Remove IE restriction on NTCE website.
  6. // @author Shuhao
  7. // @license MIT
  8. // @match http*://*.neea.edu.cn/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var code = "window.ActiveXObject = true;";
  17. var script = document.createElement('script');
  18. script.appendChild(document.createTextNode(code));
  19. (document.head||document.documentElement).appendChild(script);
  20. script.parentNode.removeChild(script);
  21.  
  22. const table = document.getElementsByTagName("table");
  23. window.onload = function(){
  24. table[0].style.width = "1000px";
  25. table[0].style.margin = "0 auto";
  26. table[0].style.textAlign = "left";
  27. table[0].style.left = "50%";
  28. };
  29. })();