Created
June 13, 2019 20:47
-
-
Save LeiHao0/65195e1a045916f7000eb4a2a7af7661 to your computer and use it in GitHub Desktop.
Del Douban
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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