better buttons
当前为
// ==UserScript==
// @name redditp mobile friendly
// @namespace redditp.mobile.friendly
// @version 2024-10-24
// @description better buttons
// @author You
// @match https://redditp.com/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
for (const id of ['prevButton', 'nextButton']) {
const left = id == 'prevButton';
const button = document.getElementById(id);
if (button) {
if (left) {
button.style.left = "0px";
} else {
button.style.left = "50%";
}
button.style.top = "0px";
button.style.height = "50%";
button.style.width = "100%";
button.style.opacity = "0";
}
}
})();