Skip to content

Instantly share code, notes, and snippets.

@march1993
Created July 12, 2018 06:06
Show Gist options
  • Save march1993/6d685b5b13e5f7888130798546121e21 to your computer and use it in GitHub Desktop.
Save march1993/6d685b5b13e5f7888130798546121e21 to your computer and use it in GitHub Desktop.
删除新浪微博 在每一页打开 console 执行 2018/07/12
list = [].slice.call(document.getElementsByClassName('WB_cardwrap')).map(x=>x.getAttribute('mid')).filter(x=>x);
list.forEach(mid => {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://www.weibo.com/aj/mblog/del?ajwvr=6', false);
var fd = new FormData();
fd.append('mid', mid);
xhr.send(fd);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment