Created
August 4, 2025 11:20
-
-
Save ydrea/7686b7b163f4c118f1b5bd9573fbd413 to your computer and use it in GitHub Desktop.
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
document.addEventListener("DOMContentLoaded", function() { | |
var links = document.querySelectorAll('a'); | |
for (var i = 0; i < links.length; i++) { | |
var link = links[i]; | |
if (link.href.indexOf('http://andrija-vranic.from.hr') === 0) { | |
link.href = link.href.replace('http://', 'https://'); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment