redsave

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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
yokelman
일일 설치 수
0
총 설치 수
7
평점
0 0 0
버전
1
생성일
2024-06-13
갱신일
2024-06-13
크기
6.72KB
라이선스
GNU AGPL-3.0
적용 사이트

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