UBlock

UBlock is a user-script programmed in Java. It allows you to block the current website you're viewing, simply by enabling it.

  1. // ==UserScript==
  2. // @name UBlock
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-01-14
  5. // @description UBlock is a user-script programmed in Java. It allows you to block the current website you're viewing, simply by enabling it.
  6. // @author haimynameisalex
  7. // @match *://*/*
  8. // @icon https://i.ibb.co/NYPJgqH/UBlock-Logo.png
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. // == Programmed in Java by haimynameisalex == \\
  14.  
  15. // == Blocks the current web-page == \\
  16.  
  17. function BlockURL(){
  18. console.log("Blocking URL")
  19.  
  20. var current_element = document.querySelector("html");
  21. current_element.parentNode.removeChild(current_element)
  22. }
  23.  
  24. // == Main == \\
  25.  
  26. (function() {
  27. 'use strict';
  28. BlockURL()
  29. })();

QingJ © 2025

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