前往
大廳
主題

火狐UC腳本:Redirector重定向器

—— | 2015-07-11 20:21:29 | 巴幣 0 | 人氣 1498

腳本說明:網頁從手機版、簡體版轉到電腦版、繁體版......
此腳本需要安裝userChromeJS Mix套件,安裝使用方法請看:userChromeJS Mix
腳本:Redirector_ModOos.uc
完成上面兩個後,還要添加規則才能作用。

這是我的,程式碼複製貼上至筆記本,檔名:
_redirector.js
放在\chrome\Local\底下。

在腳本圖示上點一下,看到規則就是成功了。

rules = [{
    name: "贴吧重定向",
    from: /^http:\/\/(?:[cv]\.tieba|xingqu)(\.baidu)?(\.com\/)(p\/|f\?kw=)?(.*)$/,
    to: "http://tieba$1$2$3$4",
    regex: true
},{
    name: "百度貼吧|百科 原始大圖",
    from: /http:\/\/(imgsrc|[\w]?\.hiphotos)\.baidu\.com\/(forum|baike)\/[\w].+\/sign=[^\/]+(\/.*).jpg/i,
    to: "http://$1.baidu.com/$2/pic/item$3.jpg",
    regex: true
},{
    name: "巴哈姆特",
    from: "http://ref.gamer.com.tw/redir.php?url=*",
    to: "$1",
    wildcard: true
},{
    name: "蘋果日報",
    from: /^http:\/\/m\.appledaily\.com\.tw\/(.*)/i,
    to: "http://www.appledaily.com.tw/$1",
    regex: true
},{
    name: "小惡魔01",
    from: /^http:\/\/www\.5i01\.cn\/(.*)/i,
    to: "http://www.mobile01.com/$1",
    regex: true
},{
    name: "谷歌搜尋结果禁止跳轉",
    from: /^https?:\/\/www\.google\.com\/url\?.*url=([^&]*).*/i,
    to: "$1",
    regex: true
},{
    name: "維基繁",
    from: /^(https?:\/\/zh\.wikipedia\.org)\/(wiki|zh|zh((?!\-tw)[^\/])+)\/(.*)/i,
    to: "$1/zh-tw/$4",
    regex: true,
    satte:true,
},{
    name: "油猴腳本鏡像",
    state: true,
    from: /^https?:\/\/userscripts\.org\/(.*)/i,
    to: "http://userscripts-mirror.org/$1",
    regex: true
},{
    name: "臉書電腦版",
    from: /^https?:\/\/m\.facebook\.com\/(.*)/i,
    to: "https://www.facebook.com/$1",
    regex: true
}];

創作回應

相關創作

更多創作