Skip to content

Instantly share code, notes, and snippets.

@libelle
Created July 8, 2020 00:43
Show Gist options
  • Select an option

  • Save libelle/ff83c5e7fd2520624847c47ea0de1563 to your computer and use it in GitHub Desktop.

Select an option

Save libelle/ff83c5e7fd2520624847c47ea0de1563 to your computer and use it in GitHub Desktop.
ActBlue.com Donation Page extractor. Pulls info from page, and outputs it formatted to the console to be cut/pasted into a ticker.
javascript:(function(){var%20l='Thank%20you%20for%20your%20donation!%20';$('div.shared-contribution%20h3').each(function(k){var%20q=this;if%20(q.className=="amount")%20l+=q.innerText.replace('.00','')+'%20...%20';%20else%20{var%20v=q.innerText.split("%20");var%20j%20=%20v.pop().substring(0,1);l+=(v[0]+'%20'+j+'.%20');}});console.log(l.substring(0,195));})();
@libelle

libelle commented Jul 8, 2020

Copy link
Copy Markdown
Author

This should be used as a bookmarklet. Use it on the page https://secure.actblue.com/pages/your-campaign/contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment