Created
July 8, 2020 00:43
-
-
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.
This file contains hidden or 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
| 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));})(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be used as a bookmarklet. Use it on the page https://secure.actblue.com/pages/your-campaign/contributions