Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide Ad Interests and Past Advertisers from FB
// this will not remove your data from them, but it will help reducing the bits of info from making your ads personalized
// it can be manually done on https://facebook.com/ads/preferences but they guessed like 300 interests and i am too lazy to hide each of them one by one
//
// run this on https://www.facebook.com on a web browser
// this hides your ad interests
new AsyncRequest('/ads/profile/interests').setHandler(({
payload: {
interests
}
}) => new AsyncRequest('/ads/preferences/edit_interests').setData({
action: 'del',
product: 'ad_preferences',
fbids: interests.map(({
fbid
}) => fbid),
edit_product: 'added_interests_menu'
}).send()).send()
// this hides the advertisers of ads you saw
new AsyncRequest('/ads/profile/advertisers').setHandler(({
payload: {
advertisers: {
clicked,
contact_info,
store_visit,
website_app
}
}
}) => [...clicked, ...contact_info, ...store_visit, ...website_app].map(({
fbid
}) => new AsyncRequest('/ads/preferences/advertiser_hideall').setData({
advertiser_fbid: fbid,
undo: false,
transparency_product: 'ad_preferences'
}).send())).send()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.