Greasy Fork is available in English.
将微博分享按钮自动跳转https避免需要重新登录。
当前为
// ==UserScript==
// @namespace http://greasyfork.icu/users/87873
// @name 微博分享按钮HTTP转HTTPS
// @description 将微博分享按钮自动跳转https避免需要重新登录。
// @version 1.0
// @author nasbdh9
// @include http://service.weibo.com/*
// @icon https://weibo.com/favicon.ico
// ==/UserScript==
(function(){
var debug = 0;
var new_location = location.href.replace(/http\:/, 'https:');
if ( debug > 0 ) {
alert( "Hash: "+location.hash+
"\nHost: "+location.host+
"\nHostname: "+location.hostname+
"\nHREF: "+location.href+
"\nPathname: "+location.pathname+
"\nPort: "+location.port+
"\nProtocol: "+location.protocol+
"\n"+
"\nNew Location: "+new_location);
};
location.href = new_location;
})();