VES doesn't work, expand scripts on Greasy Fork don't work.
Here's a simple working Greasemonkey script for expanding all posts and images on the page:
// ==UserScript==
// @name Voat Autoexpand
// @description Autoexpand all Voat selfposts and images
// @namespace VoatAutoexpand
// @match *://*.voat.co/v/*
// @version 1
// @grant none
// @run_at document-end
// ==/UserScript==
window.addEventListener('load', () => {
let lastTabmenuButton = document.querySelector('.tabmenu li:last-child');
let cloneDeep = true;
let expandButton = lastTabmenuButton.cloneNode(cloneDeep);
let postsToExpand = document.querySelectorAll('.expando-button.collapsed');
expandButton.childNodes[0].innerText = `Expand (${postsToExpand.length})`;
lastTabmenuButton.parentNode.insertBefore(expandButton,lastTabmenuButton.nextSibling);
expandButton.addEventListener('click', event => {
postsToExpand.forEach(el => el.click());
event.preventDefault();
});
});
Sort: Top
[–] boredTech ago (edited ago)
This leaves the anchor to submit, palemoon doesn't work as you expected. Looking at work a rounds.
May just have to do rewrite to get this to work for me. I suck at js. and the forEach function does not work in palemoon for some reason.
[–] Revisor [S] ago
I don't know how much Pale Moon supports ES6. I used two ES6 features: template literals
and arrow functions
forEach() is an ES5 feature
All three can be easily rewritten for the cost of being slightly longer and less readable.