Skip to content

Instantly share code, notes, and snippets.

@alanhogan
Created September 1, 2016 19:24
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 alanhogan/54ca0fc2f8acb7718b711844a25674fe to your computer and use it in GitHub Desktop.
Save alanhogan/54ca0fc2f8acb7718b711844a25674fe to your computer and use it in GitHub Desktop.

payWithTweet is a jQuery plugin that makes you go tweet something to unlock an action on the page. You can bypass it by running:

function createCookie(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+ date.toGMTString();}else{expires="";}
document.cookie=encodeURIComponent(name)+"="+ encodeURIComponent(value)+ expires+"; path=/";}

createCookie("tweetToDownload",true,30);
@Luc45
Copy link

Luc45 commented Dec 24, 2016

It just returns "undefined" and nothing happens, am I doing something wrong?

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