Skip to content

Instantly share code, notes, and snippets.

View libelle's full-sized avatar

Samuel Goldstein libelle

View GitHub Profile
@libelle
libelle / gist:ff83c5e7fd2520624847c47ea0de1563
Created July 8, 2020 00:43
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));})();