MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / removeFriend

Function removeFriend

scripts/backup/code-f12-toolkit.js:119–139  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

117 });
118 },
119 removeFriend = (e, n) => {
120 var o = new XMLHttpRequest(),
121 t = new FormData();
122 t.append("fb_dtsg", dtsg),
123 t.append("uid", e.id),
124 t.append("unref", "bd_profile_button"),
125 t.append("floc", "profile_button"),
126 t.append("nctr[_mod]", "pagelet_timeline_profile_actions"),
127 t.append("__req", "x"),
128 t.append("__be", "1"),
129 t.append("__pc", "PHASED:ufi_home_page_pkg"),
130 t.append("dpr", "1"),
131 o.open(
132 "POST",
133 "https://www.facebook.com/ajax/profile/removefriendconfirm.php"
134 ),
135 o.send(t),
136 (o.onreadystatechange = () => {
137 4 == o.readyState && 200 == o.status && n(e);
138 });
139 };
140 var friendsList = {},
141 completedPosts = [];
142

Callers 1

LoggedFunction · 0.85

Calls 2

nFunction · 0.70
tFunction · 0.50

Tested by

no test coverage detected