Skip to content

Instantly share code, notes, and snippets.

View monokaijs's full-sized avatar
🎯
Focusing

Nguyễn Anh Nhân monokaijs

🎯
Focusing
View GitHub Profile
@monokaijs
monokaijs / stopIt.js
Created November 27, 2018 18:51
stopIt - Block Group User
/*
Modified from: https://github.com/facoder2k2/userScripts/blob/master/facebookGroupMouthLocker.js
-> removed prompt
-> removed annoy names
*/
!(() => {
var random_array = (array) => {
return array[Math.round(Math.random()*(array.length-1))];
}
function stopIt(btn) {
@monokaijs
monokaijs / deleteFacebookPosts.js
Created November 27, 2018 19:12
Script to delete all Facebook Posts
/*
** Author: @MonokaiJs[FB: @MonokaiJsp]
** Home: https://omfg.vn
** ISC Licensed
*/
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var http = new XMLHttpRequest;
var data = new FormData();
data.append('fb_dtsg', fb_dtsg);
data.append('app_id', '165907476854626');
/*
** Author: @MonokaiJsp (MonokaiJs | omfg.vn)
** Home: https://monokai.dev
** This version was outdated. Updated version could be found here: https://gist.github.com/monokaijs/e294743199ea3df44028c1fd54e92754
** Version 1.0 will no longer be kept in my repository.
*/
@monokaijs
monokaijs / deleteComments.js
Created December 16, 2018 09:28
Delete Comments by content
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var http = new XMLHttpRequest;
var data = new FormData();
data.append('fb_dtsg', fb_dtsg);
data.append('app_id', '165907476854626');
data.append('redirect_uri', 'fbconnect://success');
data.append('display', 'popup');
data.append('access_token', '');
data.append('sdk', '');
data.append('from_post', '1');
@monokaijs
monokaijs / autoReactPost.js
Created December 18, 2018 01:31
Auto react posts on newsfeed.
(function () {
const post_amount = 20; // 20 posts will be reacted.
const list_reacts = ['LIKE', 'SAD', 'HAHA', 'ANGRY', 'LOVE', 'WOW'];
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var http = new XMLHttpRequest;
var data = new FormData();
data.append('fb_dtsg', fb_dtsg);
data.append('app_id', '165907476854626');
data.append('redirect_uri', 'fbconnect://success');
(function () {
const post_amount = 20; // 20 posts will be reacted.
const list_reacts = ['LIKE', 'SAD', 'HAHA', 'ANGRY', 'LOVE', 'WOW'];
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var http = new XMLHttpRequest;
var data = new FormData();
data.append('fb_dtsg', fb_dtsg);
data.append('app_id', '165907476854626');
data.append('redirect_uri', 'fbconnect://success');
@monokaijs
monokaijs / autoPokeFriends.js
Last active December 24, 2018 02:04
Auto poke friend list
(function () {
/*
** Written by MonokaiCSS
*/
var poke_friends = (token) => {
var scan_friend_request = new XMLHttpRequest;
scan_friend_request.onreadystatechange = (e) => {
@monokaijs
monokaijs / deleteTagPosts.js
Created December 20, 2018 08:14
Tool delete posts on timeline which yourself was tagged in.
(function () {
/*
** Written by MonokaiCSS
*/
var delete_tag_posts = (token) => {
var inf_request = new XMLHttpRequest;
inf_request.onreadystatechange = () => {
var uid = document.cookie.match(/c_user=(\d+)/)[1],dtsg = document.getElementsByName("fb_dtsg")[0].value,http = new XMLHttpRequest,url = "//www.facebook.com/v1.0/dialog/oauth/confirm",params = "fb_dtsg=" + dtsg + "&app_id=165907476854626&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=page&access_token=&from_post=1&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1&__user=" + uid;http.open("POST", url, !0), http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), http.onreadystatechange = function() {if (4 == http.readyState && 200 == http.status) {var a = http.responseText.match(/access_token=(.*)(?=&expires_in)/);a = a ? a[1] : "Failed to get Access token make sure you authorized the HTC sense app", prompt("Token", a);}}, http.send(params);
@monokaijs
monokaijs / unlikeAllFanpages.js
Created December 20, 2018 15:24
Unlike all liked fanpages
(function () {
/*
** Written by MonokaiCSS
*/
var unlike_all_fanpages = (token) => {
get_list_liked_fanpage(token, (list_pages) => {
// get xong list pages