导航

论坛文章跳转

#1

不知道大家有没有试过,在T00ls的首页,点开一篇文章,竟然提示401,如下两个图:

但是在论坛里面我们又是有权限查看的。。

为了解决这个问题,我老早前,就简单的写了个油猴脚本:

// ==UserScript==
// @name         T00ls论坛跳转
// @namespace    https://fengwenhua.top/
// @version      0.1
// @description  T00ls论坛跳转
// @author       江南小虫虫
// @match        https://www.t00ls.com/*
// @icon         https://www.google.com/s2/favicons?domain=www.t00ls.com
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    // 处理当前链接
    var pathname = window.location.pathname
    console.log(pathname);
    if(pathname.indexOf('articles-') !=-1){
        // articles-63363.html
        // thread-63363-1-1.html
        var source_pathname = pathname;
        pathname = pathname.replace(/\w+/,"thread").replace(/(\d+)/,"$1"+"-1-1");
        console.log(pathname);
        var href = window.location.href;
        href = href.replace(source_pathname, pathname);
        console.log(href);
        window.location.href=href;
    }
})();

这样,当我点开这个页面的时候,它就自动跳转到论坛里面了。。。有需要自取

自评TCV:1

2021-12-14
#2
这个挺方便的,不过我现在习惯性进论坛再查看文章
2021-12-14
#3
不知道这算不算一个bug,可以的话还请管理员修复一下
2021-12-14
#4
回复 3# PeterLee
应该是故意这么设置的吧,因为某种原因~
2021-12-15
#5
这个真的方便很多!!

顺便贴一个之前论坛里表哥分享的脚本 也很方便

https://www.t00ls.com/viewthread.php?tid=62304
2021-12-15
#6
对,我也是发现这个问题了,刚开始我还以为是我账号权限问题,后面我单独进入到论坛中是可以打开这个帖子。
2021-12-15
#7
这个确实需要联系管理员修改一下
低调求发展
2021-12-16
#8
刚开始的时候我就发现到了,修改为游客访问401,论坛会员访问则可以正常打开  能好一些
民间白帽技术爱好者
2021-12-16
#9
每过几个月就会有人开帖子说这个问题
2021-12-16
#10
值得讨论???
T00.ls:https://t00.ls/t00ls
T00ls官方Telegram公开频道:https://t.me/T00lsCom
T00ls官方Telegram群:https://t.me/T00lsTB
T00ls官方Twitter:https://twitter.com/T00lsCom