Created
March 6, 2022 17:02
-
-
Save igorvolnyi/7d417c4ab02fe52c090826ebd7a832fa to your computer and use it in GitHub Desktop.
Replace all http links to https
This file contains 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
Array.from(document.querySelectorAll('a[href^="http://imagetwist.com"]')) | |
.forEach(link => link.setAttribute('href', link.getAttribute('href').replace(/^http/, 'https'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment