Skip to content

Instantly share code, notes, and snippets.

@LeiHao0
Created June 13, 2019 20:47
Show Gist options
  • Save LeiHao0/65195e1a045916f7000eb4a2a7af7661 to your computer and use it in GitHub Desktop.
Save LeiHao0/65195e1a045916f7000eb4a2a7af7661 to your computer and use it in GitHub Desktop.
Del Douban
function a() {
var g = function(c) {
$.post_withck("/j/status/delete", { sid: c });
};
var h = function(c) {
$.post_withck("/j/status/unreshare", { sid: c });
};
$("a[data-unreshare]").each(function() {
h($(this).attr("data-unreshare"));
$(this).hide();
});
$("div[data-status-id]").each(function() {
g($(this).attr("data-status-id"));
$(this).hide();
});
window.location.reload();
}
setInterval(function() {
a();
}, 10000);
setTimeout(a(), 3000);
window.scrollTo(0, document.body.scrollHeight);
list = document.getElementsByClassName("short-content");
for (e in list) {
list[e].click();
}
deList = document.getElementsByClassName("review-footer-action-remove");
for (e in deList) {
if (e != 0) {
console.log(e);
deList[e].childNodes[1].click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment