您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
[PT] Troca o protocolo 'http' por 'https' (seguro) para TODOS os sites (se este nao tiver uma versao segura, causa erro)
- // ==UserScript==
- // @name TrocaHTTPporHTTPS
- // @namespace http://userscripts.org/scripts/show/77703
- // @author RASG
- // @description [PT] Troca o protocolo 'http' por 'https' (seguro) para TODOS os sites (se este nao tiver uma versao segura, causa erro)
- // @include http://*
- // @version 2012.01.01
- // ==/UserScript==
- (function() {
- var url = window.location.href;
- if (url.indexOf("http:")==0) {
- window.location.replace(location.href.replace(location.protocol, "https:"));
- }
- if (url.indexOf("https:")==0) {
- for (var i=0,link; (link=document.links[i]); i++) {
- if (link.href.indexOf("http:")==0) link.href = link.href.replace(location.protocol, "https:");
- }
- }
- }
- )();