Skip to content

Commit 7a31389

Browse files
committed
_sharedData insta
1 parent 79cca56 commit 7a31389

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/insta_getUserInfo.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ export default {
1111
runInExtensionContext: true,
1212

1313
func: async function () {
14-
// https://stackoverflow.com/a/52808289/11898496
15-
// https://www.instagram.com/web/search/topsearch/?query=samdoesarts
16-
1714
function renderUser(user, index) {
1815
//prettier-ignore
1916
let { pk, username, full_name, is_private, is_verified, pk_id, profile_pic_url, friendship_status, social_context } = user;
@@ -54,6 +51,7 @@ export default {
5451
let txt = window.prompt("Nhập username của người muốn xem thông tin:");
5552
if (txt) {
5653
try {
54+
// https://stackoverflow.com/a/52808289/11898496
5755
let res = await fetch(
5856
"https://www.instagram.com/web/search/topsearch/?query=" + txt
5957
);
@@ -125,6 +123,10 @@ export default {
125123
};
126124

127125
function backup() {
126+
// https://stackoverflow.com/a/38209893/11898496
127+
const { fbid, id, full_name, usename, profile_pic_url, profile_pic_url_hd } =
128+
window._sharedData.config.viewer;
129+
128130
function getUidFromCookie() {
129131
try {
130132
const encoded = document.cookie

0 commit comments

Comments
 (0)