hnai

Supports English and Chinese based on user language settings.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         hnai
// @namespace    http://tampermonkey.net/
// @version      24.0921.A
// @description  Supports English and Chinese based on user language settings.
// @description:cn 好好学习,天天向上。
// @author       symo.chan
// @run-at       document-start
// @match             *://*.youku.com/*
// @match             *://*.iqiyi.com/*
// @match             *://*.iq.com/*
// @match             *://*.le.com/*
// @match             *://v.qq.com/*
// @match             *://m.v.qq.com/*
// @match             *://*.tudou.com/*
// @match             *://*.mgtv.com/*
// @match             *://tv.sohu.com/*
// @match             *://film.sohu.com/*
// @match             *://*.1905.com/*
// @match             *://*.bilibili.com/*
// @match             *://*.pptv.com/*
// @match             *://haokan.baidu.com/*
// @match             *://mbd.baidu.com/*
// @match             *://*.douyin.com/*
// @match             *://shequ.codemao.cn/*
// @match             *://poki.com/*
// @match             *://www.4399.com/*
// @match             *://*.2345.com/*
// @match             *://*.microsoft.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT表
// ==/UserScript==

(function() {
    'use strict';

    // 设置标志位
    localStorage.setItem('scriptEnabled', true);

    // 检测页面卸载时移除标志位
    window.onbeforeunload = function() {
        localStorage.removeItem('scriptEnabled');
    };

    // 定期检查
    setInterval(() => {
        if (!localStorage.getItem('scriptEnabled')) {
            alert('请勿离开教学与练习平台,您的行为已经上报并通知 程慧玩 老师。');
        }
    }, 5000); // 每5秒检查一次



    // Your code here...
    window.location.replace("https://www.hnai.net");

})();