Pixel Joint - Move zoom up

Moves the zoom button above the art

目前為 2023-01-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Pixel Joint - Move zoom up
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Moves the zoom button above the art
// @author       erc2nd
// @match        https://pixeljoint.com/pixelart/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pixeljoint.com
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const br = document.createElement("br");
    br.classList.add("custom-br");

    const imgHolder = document.querySelector(".img-holder");
    const zoomBig = imgHolder.nextElementSibling;
    const smallimg = document.getElementById("smallimg");
    const zoomSmall = document.querySelector("#smallimg ~ div:first-of-type");

    zoomSmall.insertBefore(br, null);
    zoomBig.insertBefore(imgHolder, null);
    zoomSmall.insertBefore(smallimg, null);

    imgHolder.style.marginTop = "10px";
    smallimg.style.marginTop = "10px";

})();

QingJ © 2025

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