Arka plan scripti

Arka plana seçilen urlyi ekler.Eğer çalışmadıysa bu adrese gidin:https://m.youtube.com/watch?v=DXayo1XNM9k&t=1s

  1. // ==UserScript==
  2. // @name Arka plan scripti
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Arka plana seçilen urlyi ekler.Eğer çalışmadıysa bu adrese gidin:https://m.youtube.com/watch?v=DXayo1XNM9k&t=1s
  6. // @author 《₁₈₇》
  7. // @match *://gartic.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function applyGlobalBackground() {
  15. document.body.style.backgroundImage = "url('')";
  16. document.body.style.backgroundSize = "cover";
  17. document.body.style.backgroundRepeat = "no-repeat";
  18. document.body.style.backgroundAttachment = "fixed";
  19.  
  20. const startScreen = document.querySelector('.home');
  21. if (startScreen) {
  22. startScreen.style.backgroundImage = "url('')";
  23. startScreen.style.backgroundSize = "cover";
  24. startScreen.style.backgroundRepeat = "no-repeat";
  25. startScreen.style.backgroundAttachment = "fixed";
  26. }
  27.  
  28. const roomList = document.querySelector('.rooms');
  29. if (roomList) {
  30. roomList.style.backgroundImage = "url('')";
  31. roomList.style.backgroundSize = "cover";
  32. roomList.style.backgroundRepeat = "no-repeat";
  33. roomList.style.backgroundAttachment = "fixed";
  34. }
  35.  
  36. const roomPage = document.querySelector('.room');
  37. if (roomPage) {
  38. roomPage.style.backgroundImage = "url('')";
  39. roomPage.style.backgroundSize = "cover";
  40. roomPage.style.backgroundRepeat = "no-repeat";
  41. roomPage.style.backgroundAttachment = "fixed";
  42. }
  43.  
  44. const buttons = document.querySelectorAll('button');
  45. buttons.forEach(button => {
  46. button.style.backgroundImage = 'none';
  47. });
  48. }
  49.  
  50. const observer = new MutationObserver(applyGlobalBackground);
  51. observer.observe(document.body, { childList: true, subtree: true });
  52.  
  53. applyGlobalBackground();
  54. })();