Last active
March 12, 2021 20:38
-
-
Save salsalabs/e05fbf69882fd60bb2bef15427e51a26 to your computer and use it in GitHub Desktop.
Script to delete the RSS feed links on the Salsa email blast archive.
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
<script type="text/javascript"> | |
// Remove the RSS subscribe on the email blast archive. | |
// The client doesn't want it, and the image has a non-secure URL. | |
document.addEventListener("DOMContentLoaded", () => { | |
if (window.location.href.indexOf("blastContent.jsp") != -1) { | |
var e = document.querySelector('a[href$="/rss"]'); | |
if (e != null) { | |
e.parentNode.remove(); | |
} | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment