Last active
September 9, 2017 19:42
-
-
Save mrabbitt/d4535d8078d59c1a567888e161749f17 to your computer and use it in GitHub Desktop.
Switch to https §
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javascript:(function%20(window)%20{if%20(window.location.protocol%20===%20%27https:%27)%20{window.alert(%27The%20current%20URL%20is%20already%20https:%20<%27%20+%20window.location.href%20+%20%27>%27);}%20else%20{window.location.protocol%20=%20%27https:%27;}})(window); | |
(function (window) { | |
if (window.location.protocol === 'https:') { | |
window.alert('The current URL is already https: <' + window.location.href + '>'); | |
} else { | |
window.location.protocol = 'https:'; | |
} | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment