您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Extract FB UID in Profile URL
// visit some profile on fb, then open console then type and press enter: get_id // ==UserScript== // @name Get Facebook UID // @namespace http://tampermonkey.net/ // @version 0.1 // @description Extract FB UID in Profile URL // @author Loc Vo // @match https://www.facebook.com/* // @require http://code.jquery.com/jquery-latest.js // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; let uid = JSON.parse(document.getElementById("pagelet_timeline_main_column").getAttribute("data-gt")).profile_owner; if(uid != null && uid != '') { console.log(uid); unsafeWindow.fbid=uid; } })();