访问微博经常 403 错误,尝试将地址 由 https://weibo.com 换成 https://www.weibo.com 就可以正常访问

用油猴写了一个简单的重定向脚本,问题解决

// ==UserScript==
// @name         weibo redir
// @namespace    https://weibo.com/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://weibo.com/*
// @grant        none
// ==/UserScript==

(function() {
    // Your code here...
    if(location.href.indexOf('https://weibo.com') === 0){
        location.href = location.href.replace('https://weibo.com','https://www.weibo.com')
    }
})();

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注