Clone and keep it fixed on the screen
当前为
// ==UserScript==
// @name Prev Next Page on Screen
// @namespace Violentmonkey Scripts
// @version 1.0
// @description Clone and keep it fixed on the screen
// @author king1x32
// @match https://voz.vn/*
// @grant none
// ==/UserScript==
(function() {
"use strict";
function cloneAndFixDiv() {
const originalDiv = document.querySelector(".block-outer-main");
if (originalDiv) {
const clonedDiv = originalDiv.cloneNode(true);
Object.assign(clonedDiv.style, {
position: "fixed !important",
bottom: "25px !important",
left: "50% !important",
transform: "translateX(-50%) !important",
width: "auto !important",
zIndex: "2147483647 !important",
backgroundColor: "transparent !important",
});
document.body.appendChild(clonedDiv);
}
}
window.addEventListener("load", cloneAndFixDiv);
})();