Adds another Next button to Miniflux UI that doesn't jump all over the place
当前为
// ==UserScript==
// @name Miniflux add more previous and next links
// @namespace https://reader.miniflux.app/
// @version 18
// @description Adds another Next button to Miniflux UI that doesn't jump all over the place
// @author Tehhund
// @match *://*.miniflux.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=miniflux.app
// @run-at document-start
// ==/UserScript==
const addLinks = () => {
const paginationDiv = document.querySelector('.pagination');
const newPaginationDivs = [];
for (let i = 0; i < 4; i++) {
newPaginationDivs[i] = paginationDiv.cloneNode(true);
newPaginationDivs[i].querySelector('.elevator').remove();
paginationDiv.parentElement.appendChild(newPaginationDivs[i]);
newPaginationDivs[i].style.position = 'relative';
newPaginationDivs[i].style.top = ((i - 2) * 11) + 'rem';
}
};
try { addLinks(); } catch (e) { }// If the script runs after DOMContentLoaded this will add the links. If it runs before DOMContentLoaded, this will error and the listener below will run it instead.
window.addEventListener("DOMContentLoaded", addLinks);