No FUCKING ANNOYING pop up website in NCUE

goto last page when [Office Library & Information Services, National ChangHua University of Education] give you FUCKING ANNOYING POP UP website

  1. // ==UserScript==
  2. // @name No FUCKING ANNOYING pop up website in NCUE
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description goto last page when [Office Library & Information Services, National ChangHua University of Education] give you FUCKING ANNOYING POP UP website
  6. // @match http://120.107.215.29/web_pop_current.php
  7. // @grant none
  8. // @run-at document-start
  9. // @license GPL-3.0
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // 檢查當前頁面是否為指定的 URL
  15. if (window.location.href === 'http://120.107.215.29/web_pop_current.php') {
  16. // 如果有上一頁,則返回上一頁
  17. if (window.history.length > 1) {
  18. window.history.back();
  19. } else {
  20. // 如果沒有上一頁,則嘗試關閉當前分頁
  21. window.close();
  22. }
  23. }
  24. })();
  25.  
  26. // FUCKING Office Library & Information Services, National ChangHua University of Education.
  27. // Always claim they will remove the FUCKING ANNOYING POP UP website after few days.
  28. // The "few days" always more than zero. I observe these from 2 years ago when I admission.
  29. // The FUCKING ANNOYING POP UP website never give you any useful information.
  30. // The FUCKING ANNOYING POP UP website keep interrupt you by cover the website when you click url.
  31. // The FUCKING ANNOYING POP UP website will make you lose useful information
  32.  
  33. // FUCKING http://120.107.215.29/web_pop_current.php
  34. // FUCKING http://120.107.215.29/web_pop_current.php
  35. // FUCKING http://120.107.215.29/web_pop_current.php