Reddit - Subs - default sort

Apply default sort to subs listing (feature missing in SHreddit)

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
Achernar
Günlük kurulumlar
0
Toplam kurulumlar
20
Değerlendirmeler
1 0 0
Versiyon
0.5.1
Oluşturulma
22.01.2025
Güncellenme
10.02.2025
Boyut
5,6 KB
Lisans
N/A
Geçerli

With this userscript you can set a default sort order for posts in sub-reddits and on the homepage. It does that by rewriting all internal links on the reddit page.

You can set (or not) a global sort order for all subs. They will open in that order in place of SHreddit current default ("Hot").
Once you change the sort order of a sub-reddit (using SHreddit dropdown menu), the script uses it as the new default for that sub. Other subs will still use the global default.
The homepage order can also be stored (with the dropdown menu). The difference is that is doesn't use the global sort order. By default it is SHreddit's default ("Best").

The script also has an option to automatically redirect the sub to its order when a tab is opened with a link to an unsorted sub-reddit.

You can access the option by double-clicking the 15x15 pixels area at the top-left corner of the site (here displayed in yellow).



It will display a first prompt for default sort.


Hitting "Esc" or clicking "Cancel" ignores any modification.
Inputting an invalid value will result in the same prompt to be displayed again.

Once that prompt has been filled or bypassed, a second one will ask you if you want to redirect the landing page to the stored sort order (if applicable).

  • An empty field means no redirect
  • "True" or any undefined value means redirect if no order is specified in the url
  • "Force" means redirect to the stored sort order even in an order is in the url
  • "Ask" if you want the script to ask you if you want the page to be redirected. Works if the tab is in focus. Pages opened in the background are not redirected.