Block Social Media

replace a social media website with a message to get off(you can add any other ones you want)

  1. // ==UserScript==
  2. // @name Block Social Media
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description replace a social media website with a message to get off(you can add any other ones you want)
  6. // @author icycoldveins
  7. // @match *://*.instagram.com/*
  8. // @match *://*.facebook.com/*
  9. // @match *://*.twitter.com/*
  10. // @match *://*.tiktok.com/*
  11. // @license MIT
  12. // @icon none
  13. // @grant none
  14. // ==/UserScript==
  15. (function () {
  16. "use strict";
  17.  
  18. // Your code here...
  19. // replace instagram with a blank page that says "focus on your work"
  20. // create a div that says "focus on your work"
  21. var div = document.createElement("div");
  22. div.innerHTML = "Stop wasting time on social media. Focus on your work.";
  23. div.style.fontSize = "100px";
  24. div.style.textAlign = "center";
  25. div.style.marginTop = "100px";
  26. // replace the body with the div
  27. document.body.innerHTML = "";
  28. document.body.appendChild(div);
  29. })();

QingJ © 2025

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