rplus.github.io icon indicating copy to clipboard operation
rplus.github.io copied to clipboard

[POST] Twitter with Mobile

Open Rplus opened this issue 10 years ago • 0 comments

Twitter Mobile 有不少不同的 layout

第一種: 未登入的狀態,跟 app 的 layout 長一樣

_20160416-15 23 16

第二種: 大部份的 mobile 都會進到這一種

_20160416-15 26 00

第三種: 把 JS 關掉就進得來了

或者可以自己加個 cookie m5: off 來切過去

_20160416-15 18 08

fetch 動態牆的資料

不想打 API 的話, 可以在 Twitter 頁面裡打下面這支 JSONP,回傳的是 tweet 的主體 https://twitter.com/i/tweet/html?id=${id} 用 server side / service worker 可以拿到文字檔

如果是在 client 端 mobile 頁裡的話,可以直接打頁面拿 HTML 回來切東西 自己是寫了支 bookmarklet script 在處理 https://gist.github.com/Rplus/8d17ed39b4c902b5a5bd#file-twitter-mobile-load-thumb-js


ref: tw: https://twitter.com/RplusTW/status/720953279073529856

Rplus avatar Apr 16 '16 08:04 Rplus