Skip to content

Instantly share code, notes, and snippets.

@miaoski
Created January 25, 2016 11:55
Show Gist options
  • Save miaoski/5fb462dad094b24aef45 to your computer and use it in GitHub Desktop.
Save miaoski/5fb462dad094b24aef45 to your computer and use it in GitHub Desktop.
Notes on Facebook Activities
function rm() {
var r = $jq('a[aria-label="編輯"] i').click();
var s = $jq('span:contains(收回讚)').click();
var s = $jq('._54nh').filter(function() { return $jq(this).text() === "刪除"; }).click();
$jq("button:contains(刪除貼文):visible").click();
$jq("button:contains(關閉):visible").click();
$jq('a:contains(More Activity)').last().click();
if(r.length > 0 || s.length > 0)
setTimeout(rm, 10000);
}
// 隱藏所有動態時報
$('a[aria-label="允許發佈在動態時報"] i').each(function() {
$(this).click();
$('span:contains(在動態時報中隱藏)').click();
});
// 刪除隱藏的動態時報
$('a[aria-label="在動態時報中隱藏"] i').click();
$('a[aria-label="允許發佈在動態時報"] i').click();
var dels = $('._54nh').filter(function() { return $(this).text() === "刪除"; });
for(var i = 100; i < dels.length; i++) dels[i].click();
function clickbtn() {
$("button:contains(刪除貼文):visible").click();
$("button:contains(關閉):visible").click();
}
setTimeout(clickbtn, 10000);
$('._54nh').filter(function() { return $(this).text() === "刪除"; }).click();
$("button:contains(刪除貼文):visible").click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment