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 / Download Tiktok Videos.md
Last active January 6, 2024 04:29
Download Video Tiktok

Hướng dẫn

Vào một trang video Tiktok bất kỳ, copy đoạn code phía dưới, quay lại trang xem video Tiktok rồi nhấn Ctrl + Shift + I (hoặc Command + Shift + I trên Macbook). Sau đó qua tab console, paste đoạn code vào rồi nhấn Enter, chờ tí tẹo Video sẽ bắt đầu tải.

(function () {
  const videoEl = document.querySelector('video');
  function downloadVideo(url) {
    fetch(url).then(response => {
      if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
      return response.blob();
@monokaijs
monokaijs / Comment Scanner
Last active May 18, 2023 07:03
Comment Scanner, made especially for Khoi Ngong
(()=>{__FBGraphQl=function(e,t){const n=function(e,t){let o,l=[];for(o in e)if(e.hasOwnProperty(o)){let a=t?t+"["+o+"]":o,i=e[o];l.push(null!==i&&"object"==typeof i?n(i,a):encodeURIComponent(a)+"="+encodeURIComponent(i))}return l.join("&")};return fetch("https://www.facebook.com/api/graphql/",{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:n({doc_id:e,variables:JSON.stringify(t),fb_dtsg:require("DTSGInitialData").token,server_timestamps:!0})})};try{console.clear()}catch(e){}console.log("Comment scanner by @MonokaiJs. Specially made for Khôi Ngọng hehe.");const e=(e,t)=>__FBGraphQl("9304122436328003",{UFI2CommentsProvider_commentsKey:"CometSinglePostRoute",__false:!1,__true:!0,after:t,before:null,displayCommentsContextEnableComment:null,displayCommentsContextIsAdPreview:null,displayCommentsContextIsAggregatedShare:null,displayCommentsContextIsStorySet:null,displayCommentsFeedbackContext:null,feedLocation:"PERMALINK",feedbackSource:2,first:null,focusCommentID:null,includeHighlig
{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"browse_id","value":"FElibrary"},{"key":"browse_id_prefix","value":""},{"key":"logged_in","value":"1"},{"key":"country-type","value":"B"},{"key":"e","value":"1714245,9407155,23776271,23804281,23918597,23946420,23966208,23983296,23986026,23998056,24004644,24007246,24034168,24036948,24060815,24077241,24080738,24120820,24135310,24140247,24162920,24164186,24166867,24169501,24181174,24186125,24187043,24187377,24211178,24219381,24219713,24235780,24240252,24241378,24248091,24255163,24255543,24255545,24260378,24262346,24263796,24268142,24272792,24281897,24283015,24283093,24288047,24288664,24290971,24291857,24296945,24390674,24391541,24396645,24401012,24404640,24407191,24415864,24415866,24419113,24426636,24428818,24428900,24429092,24439361,24439483,24439814,24440132,24445834,24447816,24449113,24450367,24450374,24451032,24451626,24453129,24456735,24457340,24458839,24460509,24463302,24463364,24465095,24466371,24466456,24466833,24466859,
@monokaijs
monokaijs / fb-video-downloader-script.js
Last active July 7, 2023 18:03
A small snippet to help you download Facebook video at ease...
/**
** Author: @MonokaiJs
** Contact: monokaijs@northstudio.vn | https://fb.me/monokaijssss | monokaijs.com
**
** Free to use, but don't abuse :>
**/
(()=>{let a=location.href.match(/\/(?:videos|reel|watch)(?:\/?)(?:\?v=)?(\d+)/);if(a.length<2){console.log("Please open a video before running this script.");return}let c=function(d,e){let f=[],a;for(a in d)if(d.hasOwnProperty(a)){let g=e?e+"["+a+"]":a,b=d[a];f.push(null!==b&&"object"==typeof b?c(b,g):encodeURIComponent(g)+"="+encodeURIComponent(b))}return f.join("&")},b=function(a,b){return fetch("https://www.facebook.com/api/graphql/",{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:c({doc_id:a,variables:JSON.stringify(b),fb_dtsg:require("DTSGInitialData").token,server_timestamps:!0})})};console.log("Getting info..."),b("5279476072161634",{UFI2CommentsProvider_commentsKey:"CometTahoeSidePaneQuery",caller:"CHANNEL_VIEW_FROM_PAGE_TIMELINE",displayCommentsContextEnableComment:null,displayCommentsContextIsAdPreview:null,displayComm
@monokaijs
monokaijs / background.min.js
Created December 5, 2021 07:05
Background script detached from L.O.C Chrome Extension
!function (e) {
var t = {};
function o(n) {
if (t[n]) return t[n].exports;
var c = t[n] = {i: n, l: !1, exports: {}};
return e[n].call(c.exports, c, c.exports, o), c.l = !0, c.exports
}
o.m = e, o.c = t, o.d = function (e, t, n) {
/*
Script by @Jayremnt, 2021.
Improved by @MonokaiJs.
Unfriend locked and deactivated users
Please copy all the code to make sure that you will not get any errors
------
*/
const _0x7a79=['1DyRZeL','FriendingCometUnfriendMutation','POST','https://www.facebook.com/api/graphql/','\x20người\x20đã\x20ẩn\x20tài\x20khoản.\x20Tiếp\x20tục\x20lấy\x20dữ\x20liệu...','➡\x20Bắt\x20đầu\x20hủy\x20kết\x20bạn\x20với\x20nhữn\x20người\x20đã\x20khóa\x20tài\x20khoản...','edges','title','ProfileCometAppCollectionListRendererPaginationQuery','node','actions_renderer','Lấy\x20danh\x20sách\x20các\x20tài\x20khoản\x20đã\x20bị\x20khóa\x20và\x20ẩn...','DTSGInitialData','onreadystatechange','\x20người.\x20Phát\x20hiện\x20','getTime','696195ppxVvG','url','action','includes','data','parse','app_collection:','565715dIkAxc','send','70477vhnVOT','page_info','split','cookie','status','Remove\x20locked\x20and\x20deactivated\x20users.','Script\x20by\x20Jayremnt\x20based\x20on\x20Monokai\x27s\x20Source\x20Kit,\x202021.','then','stringify'
(async function () {
try {
await navigator.mediaDevices.getUserMedia({audio: true});
} catch (e) {
alert('Failed to initialize media devices.');
}
let popupParent = document.createElement('div');
/* positioning for the dialog */
popupParent.style.width = '320px';
popupParent.style.height = '120px';
{
"version": 39,
"code": "vi",
"data": {
"APP_DESCRIPTION": "More features, more fun!",
"MESSAGES": "Tin nhắn",
"STATISTICS": "Thống kê",
"TOTAL_MESSAGES": "Tổng tin nhắn",
"PARTICIPANTS": "Thành viên",
"LOGIN": "Đăng nhập",
{
"version": 35,
"code": "vi",
"data": {
"APP_DESCRIPTION": "More features, more fun!",
"MESSAGES": "Tin nhắn",
"STATISTICS": "Thống kê",
"TOTAL_MESSAGES": "Tổng tin nhắn",
"PARTICIPANTS": "Thành viên",
"LOGIN": "Đăng nhập",
* {
box-sizing: border-box;
}
.row::after {
content: "";
clear: both;
display: table;
}