Chat

A chat in every webpage! Only one global chat.

  1. // ==UserScript==
  2. // @name Chat
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description A chat in every webpage! Only one global chat.
  6. // @author ALF1
  7. // @include *
  8. // @icon https://img.favpng.com/13/19/18/chat-icon-png-favpng-VKinQiXDg2r36LkdNHRSUCeDr.jpg
  9. // @exclude https://*codesandbox.io/*
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var chat = document.createElement("div");
  17. chat.innerHTML = `<div style="
  18. top: 0px;
  19. position: fixed;
  20. right: 0%;
  21. z-index: 10000;
  22. height: 100%;
  23. "><iframe src="https://1j2of.sse.codesandbox.io/" style="
  24. height: 100%;
  25. background-color: white;
  26. "></iframe></div>`;
  27. document.body.insertBefore(chat, document.body.firstChild);
  28. document.body.style.marginRight = "300px";
  29. })();