Skip to content

Instantly share code, notes, and snippets.

@Geobert
Created September 27, 2023 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geobert/d180fcdd166685f189021c807fffd88f to your computer and use it in GitHub Desktop.
Save Geobert/d180fcdd166685f189021c807fffd88f to your computer and use it in GitHub Desktop.
(function() {
'use scrict';
console.log("HEY HERE");
function changeLivefeeds() {
console.log("changeLivefeeds");
[...document.links].forEach(function (a) {
console.log(a.href);
if (a.href.match("/public/local")) {
a.href = "/public";
}
});
}
document.addEventListener("DOMContentLoaded", changeLivefeeds);
if( document.readyState === "complete" ) {
changeLivefeeds();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment