none.gif

Gosling

写了一个浏览南+域名重定向的规则 全部集中到一个域名上

打开不同域名的链接老是要重新登录,于是写了个规则,基于浏览器拓展,不管打开什么域名都会跳转到south-plus.net。也不知道论坛之后有没有人写过。

使用浏览器拓展Header Editor,或任何可以重定向的插件。

首先安装插件,Chrome、Firefox可在拓展商店安装。

打开插件新建规则,名字随便取,【Rule type/规则类型】选择【Redirect request/重定向请求】。

【Match type/匹配类型】选择【Regular expression/正则表达式】。

【Match rules 匹配规则】
https:\/\/[a-z]*\.?(south(?=-plus\.org)|(?<=\.)south|north|east|spring|summer|snow|white|level|least|soul|blue)-plus\.(net|org)\/(.*)

【Redirect to 重定向】
https://www.south-plus.net/$3

保存。完成。

如果偏好其他域名则在匹配规则和重定向中间对调一下。

例如我想跳转north-plus,就将所有north换成south,south换成north:
https:\/\/[a-z]*\.?(north(?=-plus\.org)|(?<=\.)north|south|east|spring|summer|snow|white|level|least|soul|blue)-plus\.(net|org)\/(.*)

https://north-plus.net/$3

none.gif

3138f383

B1F  2023-10-01 14:52
([sell=0]出售內容[/sell])
牛的  

a5.gif

NPC111

B2F  2023-10-01 15:00
([sell=0] [/sell][img删除]图片链接[/img删除])
技术贴啊!

maple


1132723.jpg

深剑sama

B4F  2023-10-01 15:30
(不能做任何事的坚强)
强啊

none.gif

03ac6fd6

chrome有个扩展叫《redirector》

1121832.jpg

嘤嘤嘤

好好好

2_313552_8b3fc6d7d1a03a8.png

帅气的苦主

很好,感谢

291874.jpg

黑士酱

B8F  2023-10-01 17:04
(一生37岁,点燃无烟碳的结束。)
不愿安装偶尔一用的程序,路过。

花之萌宝


4.gif

我爱智能汉化

看起来不错

1325998.png

楽園の少女

顺便写了个油猴脚本
// ==UserScript==
// @name         Redirect to level-plus.net
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Redirect specific domains to level-plus.net
// @author       You
// @match        *://*.south-plus.net/*
// @match        *://*.north-plus.net/*
// @match        *://*.east-plus.net/*
// @match        *://*.spring-plus.net/*
// @match        *://*.summer-plus.net/*
// @match        *://*.snow-plus.net/*
// @match        *://*.white-plus.net/*
// @match        *://*.level-plus.net/*
// @match        *://*.least-plus.net/*
// @match        *://*.soul-plus.net/*
// @match        *://*.blue-plus.net/*
// @match        *://*.south-plus.org/*
// @match        *://*.north-plus.org/*
// @match        *://*.east-plus.org/*
// @match        *://*.spring-plus.org/*
// @match        *://*.summer-plus.org/*
// @match        *://*.snow-plus.org/*
// @match        *://*.white-plus.org/*
// @match        *://*.level-plus.org/*
// @match        *://*.least-plus.org/*
// @match        *://*.soul-plus.org/*
// @match        *://*.blue-plus.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const currentURL = window.location.href;
    const regex = /https:\/\/(?:bbs\.)?(south|north|east|spring|summer|snow|white|level|least|soul|blue)-plus\.(net|org)\/(.*)/
    const match = currentURL.match(regex);

    if (match && !currentURL.startsWith("https://www.south-plus.net")) {
        // 第三个匹配组包含路径
        const newPath = match[3];
        const newURL = `https://www.south-plus.net/${newPath}`;
        window.location.replace(newURL);
    }
})();

none.gif

54guiling

B12F  2023-10-01 19:18
(2023/12/11,三年时间,绝对十倍挂回来,加上其亲人信息)
CPU熔断

9.png

皮卡超车

引用
引用第8楼9bb83736于2023-10-01 17:04发表的  :
不愿安装偶尔一用的程序,路过。

我作为开发过油猴脚本和浏览器扩展的人来说,你说的是对的,而我也是这么做的

none.gif

e88f6be5

优秀

89e7be95


268200.jpg

思源

感谢分享,先收藏下

none.gif

跳跳瓶


https://www.south-plus.net/read.php?tid-1321191.html
很久以前有人做过了,这个插件可以和凛+混用