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 / autoMessageFacebook.js
Last active January 6, 2024 07:56
Auto send message Facebook.
(() => {
/*
{
Author: "MonokaiJs",
Home: "https://omfg.vn",
Donate: "https://omfg.vn/donate"
}
*/
var friend_limit_count = 500; // limit friends number
var dtsg = document.getElementsByName("fb_dtsg")[0].value;
@monokaijs
monokaijs / scanFriendComments.js
Last active December 26, 2018 02:49
Scan Friends' comments on a post.
(() => {
/*
{
author: 'MonokaiJs',
facebook: 'https://fb.me/MonokaiJsp',
homepage: 'https://omfg.vn'
// Please DO NOT REMOVE CREDITS IN THIS FILE.
}
*/
@monokaijs
monokaijs / MessengerAttachmentsScanner.js
Last active February 21, 2024 11:37
Scan Facebook Messages for attachments.
(() => {
/*
Author: @MonokaiJsp (MonokaiJs | https://omfg.vn)
>>>>>>> Free for Personal Usage.
======= Donate me: https://omfg.vn/donate
======= Github: https://github.com
======= Gists
*/
@monokaijs
monokaijs / autoReactComments.js
Created December 22, 2018 09:48
Auto give reactions to comment.
(function () {
/*
** Written by MonokaiCSS
*/
var postID = '358615471616349';
var reactions = ['HAHA', 'WOW', 'SAD', 'LIKE', 'ANGRY', 'LOVE'];
@monokaijs
monokaijs / topChatFacebook.js
Last active December 24, 2018 02:04
Get list of users who has most messages with you.
(function () {
/*
** Written by MonokaiCSS
** Editted by MonokaiJs
*/
const top_count = 20; // Edit this line for custom number conversations.
var get_list_conversations = (token) => {
@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
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 / 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 = () => {
@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) => {
(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');