Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Last active March 12, 2021 20:38
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 salsalabs/e05fbf69882fd60bb2bef15427e51a26 to your computer and use it in GitHub Desktop.
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.
<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