Skip to content

Instantly share code, notes, and snippets.

View microvn's full-sized avatar

Hoang Nguyen microvn

View GitHub Profile
@microvn
microvn / fb.md
Created February 1, 2021 10:54 — forked from nemosupremo/fb.md

Facebook continues to make real-time improvements to its platform to protect people's data. We are making the following changes to maintain trust with people who use our products. These changes are never easy, but by focusing our efforts, we can put stronger protections in place to combat potential abuse. Please find a quick summary of these changes below:

Facebook Login:

  • App review required to ask users to share checkins, likes, photos, videos, events, and groups
  • Following fields are now deprecated and will return empty data: relationship_status, religion, political, friendlists, education, work, about, website, interested_in
  • Following Open Graph permissions are also deprecated and will return empty data: books, fitness, games, music, news, video
  • Taggable friends and mutual friends APIs are now deprecated

Pages API:

Regular Expression Code

((\d{1,2}:)?[0-5]?\d:[0-5]?\d)((\s|'|||-|,|(PM|AM)|T))(((3[01]|[12][0-9]|0[1-9]|[1-9])|([0-9]{4}))(/|-||)(1[0-2]|0[1-9]|[1-9])(/|-)([0-9]{4}|(3[01]|[12][0-9]|0[1-9]))?)|((((3[01]|[12][0-9]|0[1-9]|[1-9])|([0-9]{4}))(/|-||)(1[0-2]|0[1-9]|[1-9]|\w{3})(/|-)([0-9]{1,4}|(3[01]|[12][0-9]|0[1-9])))(((\s|'|||-|,|T))((\d{1,2}:)?[0-5]?\d:[0-5]?\d[zZ]))?)

This is the Regular Expression that helps you match basic datetime formats before you bring it to the datetime format library. This is RE to help you, it's not 100% true different countries.

String -> RE -> Library format with strftime

I'm strftime

@microvn
microvn / UnBlurTinder.txt
Last active December 16, 2019 11:05
Disable blur in Tinder 'Who likes you' web page
[VietNamese]
Mở DevTool rồi chọn Tab console của trình duyệt hoặc bấm tổ hợp phím dưới đây.
DevTool Chrome -> Ctrl+Shift+I (Cmd+Opt+I macOS).
Firefox developer tools -> Ctrl+Shift+K(Cmd+Opt+K macOS).
IE- Use the F12 developer tools -> google
Safari for developers – We Inspector. -> google
Copy đoạn mã phía dưới rồi paste vào Console rồi nhấn "Enter"
document.querySelector(".likesYou__scroller").innerHTML = document.querySelector(".likesYou__scroller").innerHTML.replace(/Blur\(12px\)::a/g, 'Blur(0px)::a').replace(/84x106_/g, '640x800_').replace(/84x84_/g, '640x640_');