Reddit-Enhancement-Suite
Reddit-Enhancement-Suite copied to clipboard
Add visitOnLoad to neverEndingReddit
Add options in neverEndingReddit to "visit" all links on the previous page when a new page is loaded
I think this would be better suited for the betteReddit module.
Also take a look at the watchForThings
interface, and the Thing
methods. By using those, you could do something like this (not tested):
watchForThings(['post'], thing => {
if (
(module.options.visitOnLoad.value === 'links' && !thing.isLinkPost()) ||
(module.options.visitOnLoad.value === 'self' && !thing.isSelfPost())
) return;
addURLToHistory(thing.getPostUrl())
});