hnai

Supports English and Chinese based on user language settings.

  1. // ==UserScript==
  2. // @name hnai
  3. // @namespace http://tampermonkey.net/
  4. // @version 24.0921.A
  5. // @description Supports English and Chinese based on user language settings.
  6. // @description:cn 好好学习,天天向上。
  7. // @author symo.chan
  8. // @run-at document-start
  9. // @match *://*.youku.com/*
  10. // @match *://*.iqiyi.com/*
  11. // @match *://*.iq.com/*
  12. // @match *://*.le.com/*
  13. // @match *://v.qq.com/*
  14. // @match *://m.v.qq.com/*
  15. // @match *://*.tudou.com/*
  16. // @match *://*.mgtv.com/*
  17. // @match *://tv.sohu.com/*
  18. // @match *://film.sohu.com/*
  19. // @match *://*.1905.com/*
  20. // @match *://*.bilibili.com/*
  21. // @match *://*.pptv.com/*
  22. // @match *://haokan.baidu.com/*
  23. // @match *://mbd.baidu.com/*
  24. // @match *://*.douyin.com/*
  25. // @match *://shequ.codemao.cn/*
  26. // @match *://poki.com/*
  27. // @match *://www.4399.com/*
  28. // @match *://*.2345.com/*
  29. // @match *://*.microsoft.com/*
  30. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  31. // @grant none
  32. // @license MIT表
  33. // ==/UserScript==
  34.  
  35. (function() {
  36. 'use strict';
  37.  
  38. // 设置标志位
  39. localStorage.setItem('scriptEnabled', true);
  40.  
  41. // 检测页面卸载时移除标志位
  42. window.onbeforeunload = function() {
  43. localStorage.removeItem('scriptEnabled');
  44. };
  45.  
  46. // 定期检查
  47. setInterval(() => {
  48. if (!localStorage.getItem('scriptEnabled')) {
  49. alert('请勿离开教学与练习平台,您的行为已经上报并通知 程慧玩 老师。');
  50. }
  51. }, 5000); // 每5秒检查一次
  52.  
  53.  
  54.  
  55. // Your code here...
  56. window.location.replace("https://www.hnai.net");
  57.  
  58. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址