Skip to content

Instantly share code, notes, and snippets.

View secretdataz's full-sized avatar
💭
I may be slow to respond.

Jittapan Pluemsumran secretdataz

💭
I may be slow to respond.
  • Bangkok, Thailand
  • 01:21 (UTC +07:00)
View GitHub Profile
/**
* @author hypnguyen1209
*/
/* Switch to new Facebook */
(()=>{let e=document.querySelectorAll('[data-type="type_user"]')[0].dataset.navItemId,t=document.getElementsByName("fb_dtsg")[0].value;fetch("https://www.facebook.com/comet/try/",{headers:{accept:"*/*","accept-language":"vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5","content-type":"application/x-www-form-urlencoded","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","viewport-width":"1920"},referrer:"https://www.facebook.com/",referrerPolicy:"origin-when-cross-origin",body:`source=SETTINGS_MENU&nctr[_mod]=pagelet_bluebar&__user=${e}&__a=1dpr=1&fb_dtsg=${encodeURIComponent(t)}`,method:"POST",mode:"cors",credentials:"include"}).then(()=>console.log("Done!")).catch(e=>console.error(e))})();
/* Switch to classic Facebook */
(()=>{let e=document.body.getElementsByTagName("script")[6].innerText.match(/\"USER_ID\":\"(.*?)\",\"/m)[1];let t=(()=>{let e=document.body.getElementsByTagName("script");for(let t=0;t<e.leng
@xPaw
xPaw / steam_quick_queue.user.js
Last active June 21, 2024 16:13
⚠ This script has been integrated into SteamDB browser extension!
// ==UserScript==
// @name Steam Queue Auto Discoverer
// @description Discover the Steam queue three times to get the sale cards
// @version 2.3.0
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7
// @icon https://store.steampowered.com/favicon.ico
// @match https://store.steampowered.com/explore*
// @grant none
// ==/UserScript==