最近论坛出了nested 浏览方式写了一个脚本可开启关闭

2026-04-11 08:320阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

介绍:

  • 开启后替换话题链接并自动重定向到 /nested/topic/xxx?sort=old
  • 替换页面DOM 链接,不会二次跳转
  • 首次安装弹窗引导,可选启用或稍后
油猴脚本如下

// ==UserScript== // @name Linux.do Nested View Redirector // @namespace http://tampermonkey.net/ // @version 1.5 // @description 自动将 linux.do 的话题链接重定向为 nested 视图并按旧到新排序 // @author sunbigfly // @match https://linux.do/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; const STORAGE_KEY = 'nested_redirector_enabled'; const WELCOME_KEY = 'nested_redirector_welcomed'; function isEnabled() { return localStorage.getItem(STORAGE_KEY) === '1'; } // ========== 首次安装弹窗 ========== if (!localStorage.getItem(WELCOME_KEY)) { document.addEventListener('DOMContentLoaded', function() { const overlay = document.createElement('div');

阅读全文
标签:纯水
问题描述:

介绍:

  • 开启后替换话题链接并自动重定向到 /nested/topic/xxx?sort=old
  • 替换页面DOM 链接,不会二次跳转
  • 首次安装弹窗引导,可选启用或稍后
油猴脚本如下

// ==UserScript== // @name Linux.do Nested View Redirector // @namespace http://tampermonkey.net/ // @version 1.5 // @description 自动将 linux.do 的话题链接重定向为 nested 视图并按旧到新排序 // @author sunbigfly // @match https://linux.do/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; const STORAGE_KEY = 'nested_redirector_enabled'; const WELCOME_KEY = 'nested_redirector_welcomed'; function isEnabled() { return localStorage.getItem(STORAGE_KEY) === '1'; } // ========== 首次安装弹窗 ========== if (!localStorage.getItem(WELCOME_KEY)) { document.addEventListener('DOMContentLoaded', function() { const overlay = document.createElement('div');

阅读全文
标签:纯水