V综避难所国内访问

方便V综避难所国内访问

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         V综避难所国内访问
// @namespace    colodes
// @version      0.2
// @description  方便V综避难所国内访问
// @author       colodes
// @match        http://*.cometeo.com
// @match        http://*.cometeo.com/*
// @include      http://new_static.url/*
// @include      *//ajax.proxy.ustclug.org/*
// @grant        GM_webRequest
// @webRequest   [{"selector":"*rakuten.co.jp/*","action":"cancel"},{"selector":"*js.medi-8.net/*","action":"cancel"},{"selector":{"match":"*://ajax.googleapis.com/*"},"action":{"redirect":{"from":"([^:]+)://ajax.googleapis.com/(.*)","to":"https://ajax.proxy.ustclug.org/$2"}}}]
// ==/UserScript==

GM_webRequest([
    { selector: '*rakuten.co.jp/*', action: 'cancel' },
    { selector: '*js.medi-8.net/*', action: 'cancel' },
    { selector: { match: '*://ajax.googleapis.com/*' }, action: { redirect: { from: '([^:]+)://ajax.googleapis.com/(.*)',  to: 'https://ajax.proxy.ustclug.org/$2' } } }
], function(info, message, details) {
    console.log(info, message, details);
});