Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created January 4, 2019 00:34
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/e558e1d5695dd52ca1c21939b0acf603 to your computer and use it in GitHub Desktop.
Save salsalabs/e558e1d5695dd52ca1c21939b0acf603 to your computer and use it in GitHub Desktop.
Script to change the labels at the top of the email blast archive. Text is for a specific client. Feel free to change it as necessary after it's installed.
<!-- SalsaStaff 267704: BEGIN script to modify titles on the email blast archive. -->
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
if (window.location.href.indexOf("blastContent.jsp") != -1) {
document.querySelector('#selectBlastSpan').innerHTML = "View a past newsletter: ";
document.querySelector('a[href$="email/public/rss"]:nth-child(2)').innerHTML = "Subscribe to the APFED Newsletter feed.";
}
})
</script>
<!-- SalsaStaff 267704: END script to modify titles on the email blast archive. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment