Greasy Fork is available in English.

福利吧论坛页面替换为按发帖时间排序

直接替换链接而不是二次跳转(适配新论坛链接),去掉了广告区

// ==UserScript==
// @name                福利吧论坛页面替换为按发帖时间排序
// @namespace           dadaewqq
// @version             3.7
// @author              https://github.com/dadaewqq/fun
// @description         直接替换链接而不是二次跳转(适配新论坛链接),去掉了广告区
// @match               https://www.wnflb99.com/*
// @match               https://www.wnflb2023.com/*
// @grant               none
// @license             MIT
// ==/UserScript==

(function () {
  "use strict";

  var all = document.querySelectorAll('[href^="https://www.wnflb2023.com/forum-"], [href^="forum-"]');
  var num = all.length;
  for (var i = 0; i < num; i++) {
    var fid = all[i].href.split("-")[1];
    var newhref = "forum.php?mod=forumdisplay&fid=" + fid + "&filter=author&orderby=dateline";
    all[i].href = newhref;
  }

  document.querySelector(".wp.cl").style.display = "none";
})();