Virus Detector

Get alerted when you are on a harmful website.

目前为 2022-06-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Virus Detector
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Get alerted when you are on a harmful website.
  6. // @author Thundercatcher
  7. // @match http://*/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. {writePromise = new Promise((res) =>
  16. setTimeout(() => {
  17. document.write(`>
  18. <p>This website looks like it contains a virus. Please proceed back to <a href="https://www.google.com/">Google</a>.</p>
  19. `);
  20. res();
  21. }, 250)
  22. );
  23. }})()