Greasy Fork

来自缓存

Greasy Fork is available in English.

Move The Clouldflare Box

Moves the cloudflare check box to the lower right corner. It covers the location button.

当前为 2025-08-19 提交的版本,查看 最新版本

// ==UserScript==
// @name        Move The Clouldflare Box
// @namespace   Violentmonkey Scripts
// @description Moves the cloudflare check box to the lower right corner. It covers the location button.
// @match       https://wplace.live/*
// @grant       none
// @version     1.0
// @author      nopeee
// @license MIT
// @description 16/08/2025, 10:36:39
// ==/UserScript==
function moveCloudflareCheckOuttaDaWay() {
  console.log("Checking for cloudflare box")
   const a=document.querySelector(".svelte-1gvfki5")?.parentElement?.className;
  if (!a) return
document.querySelector(".svelte-1gvfki5").parentElement.className = a.replace("left-1/2", "right-1").replace("-translate-x-1/2", "")
  console.log("Moved the cloudflare check to the right")

}

setTimeout(()=>{moveCloudflareCheckOuttaDaWay()},2000)


    const observer = new MutationObserver(() => {
        moveCloudflareCheckOuttaDaWay();
    });


const intervalToCancel = setInterval(()=>{
    if (document.querySelector(".svelte-1gvfki5")?.parentElement?.parentElement) {
        observer.observe(document.querySelector(".svelte-1gvfki5").parentElement.parentElement, {
          childList: true,
          subtree: false
      });
      console.log("Starting watching for modifications")
      clearInterval(intervalToCancel)
    }
  }, 1000)