Skip to content

Instantly share code, notes, and snippets.

@gnmerritt
Last active January 23, 2018 22:26
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 gnmerritt/d859d734101e7acd29395cc5315c0056 to your computer and use it in GitHub Desktop.
Save gnmerritt/d859d734101e7acd29395cc5315c0056 to your computer and use it in GitHub Desktop.
send op-eds to Molly's newsletter
javascript:(function()%7Bfunction%20callback()%7B(function(%24)%7Bvar%20jQuery%3D%24%3Bvar%20url%20%3D%20window.location.href%3Bvar%20title%20%3D%20%24('h1').text()%3Bif%20(!title)%20%7Btitle%20%3D%20prompt(%22Please%20enter%20the%20article's%20title%22%2C%20document.title)%3B%7Dvar%20author%20%3D%20prompt(%22Please%20enter%20the%20article's%20author%22%2C%20%24('%5Bname%3D%22author%22%5D').attr('content'))%3Bvar%20data%20%3D%20%7B'url'%3A%20url.trim()%2C%20'title'%3A%20title.trim()%2C%20'author'%3A%20author.trim()%7D%3B%24.ajax(%7Burl%3A%20%22https%3A%2F%2Fscript.google.com%2Fmacros%2Fs%2FAKfycbxURNIcW6Z4mKVj9hPMi7Lzta4lfwUEz2PyfKJwfveITj3LiCrA%2Fexec%22%2CdataType%3A%20%22jsonp%22%2Cdata%3A%20data%7D).success(function()%20%7B%20alert('Op-ed%20has%20been%20sent%20to%20Hot%20News.%20Thanks!')%3B%20%7D)%7D)(jQuery.noConflict(true))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%22%3Bif(s.addEventListener)%7Bs.addEventListener(%22load%22%2Ccallback%2Cfalse)%7Delse%20if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment