redsave

adds feature in libreddit/redlib to save/unsave posts, which is saved in localStorage as post ids (won't work over incognito sessions)

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
yokelman
Instalaciones diarias
0
Instalaciones totales
7
Calificaciones
0 0 0
Versión
1
Creado
13/6/2024
Actualizado
13/6/2024
Tamaño
6,72 KB
Licencia
GNU AGPL-3.0
Funciona en

Script for Tampermonkey which mimics save/unsave feature on most libreddit/redlib public instances. It saves your saved posts as ids in localStorage.

First get the URL of the libreddit/redlib instance you use. Then replace the existing URL (https://libreddit.kavin.rocks/) in two places:
at line 7 - make sure it ends with an asterisk (*) and is similar to the existing URL
at line 25 - make sure it ends with a forward slash (/) and is similar to the existing URL
The script works properly even without replacing, but then you'll have to use https://libreddit.kavin.rocks/.

To save a post click on the button at the bottom of the post you want to save, and to unsave you can click the button again. Make sure to reload the page after making changes. If you have one or more saved posts, the posts can be shown by clicking the Feeds menu at the top-left corner, then click the Saved button. The saved posts are shown by changing the code of the home page (does not create a new page), hence you can only see your saved posts on the home page itself.
One major problem is slow loading of saved posts (after clicking on the saved button). This is because the posts load one by one due to asynchronous nature of the function which loads these posts. I have done this to 1) sort posts chronologically (recently saved posts appear at the top), and 2) save me some trouble solving issues I could not resolve in the code. This could be fixed in the future.

Some features not yet implemented (sorted by priority): faster loading of saved posts, show saved post previews instead of full posts, minor code refactoring, pagination
Some of these may not be implemented ever.

Please read the warning at the start of the script (the lines with several exclamation marks).
For any further queries contact yokelman on Discord.

LICENSE: GNU AGPL-3.0 License