Greasy Fork is available in English.

【论坛必备】论坛帖子按发帖时间排序

论坛自动按发帖时间排序,支持 discuz 和 phpwind

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name                【论坛必备】论坛帖子按发帖时间排序
// @namespace        [email protected]
// @author                jasake
// @description        论坛自动按发帖时间排序,支持 discuz 和 phpwind
// @include                */forum-*
// @include                */forum.php?mod=forumdisplay*
// @include                */thread-*
// @include                */thread/*
// @include                */thread.php?fid*
// @include                */index.php?c=thread&fid=*
// @grant          none
// @charset                UTF-8
// @version                1.2
// ==/UserScript==
var bydate = document.querySelector('#filter_dateline_menu > .pop_moremenu a[href*="orderby=dateline"], #filter_threadsort_menu > .pop_moremenu a[href*="orderby=dateline"], #filter_orderby_menu a[href*="orderby=dateline"], .colplural .author a[href*="orderby=dateline"], a[href$="orderby=dateline"]') || document.querySelector('.content_filter a[href*="orderby=postdate"], .thread_sort a[href*="orderway"][href*="postdate"], #threadlist .mr20 a[href][onclick^="orderThreads(\'postdate\')"]');
if (bydate && !/\#tabA|-orderway-|orderby=/.test(location.href)) bydate.click();