No Wandering

Prevent wandering. Show a dialog when you try to visit a new page, and the action is prevented.

  1. // ==UserScript==
  2. // @name No Wandering
  3. // @name:zh-CN 阻止摸鱼
  4. // @namespace yuandi42
  5. // @version 0.0.1
  6. // @grant none
  7. // @include *.bilibili.com*
  8. // @include *hentaihand.com*
  9. // @description Prevent wandering. Show a dialog when you try to visit a new page, and the action is prevented.
  10. // @description:zh-CN 防止漫游。在尝试访问新页面时弹框报警。离开摸鱼,拥抱效率!
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. alert("Go to study please, asshole:(");
  15. window.close();window.location = "about:blank";
  16. })()