-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfb_cleaner.user.js
33 lines (27 loc) · 991 Bytes
/
fb_cleaner.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name Facebook Mobile Timeline Cleaner
// @namespace https://github.com/SageHack/fb_timeline_cleaner
// @description Delete posts, photos, remove likes, hide friends requests
// @include https://m.facebook.com/*/allactivity*
// @require http://code.jquery.com/jquery-1.8.3.min.js
// @version 1
// ==/UserScript==
$(document).ready(function(){
console.log('script loaded');
$('#root a').each(function(){
if( $(this).attr('id') ){
window.location = $(this).attr('href');
return false;
}
if(
$(this).html() == 'Delete'
|| $(this).html() == 'Delete Photo'
|| $(this).html() == 'Unlike'
|| $(this).html() == 'Hide from Timeline'
) {
console.log('found match, redirecting');
window.location = $(this).attr('href');
return false;
}
});
});