Last active
January 2, 2021 07:17
-
-
Save naskya/afa133162a4925eeea5cb7542a43e651 to your computer and use it in GitHub Desktop.
ツイートのページからその人の前後のツイートを表示するブックマークレット (日本語で使用している場合を想定)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var e=window,g=e.open,h=/\/([a-zA-Z0-9_]+)\/status\/.+/.exec(location.pathname)[1],a=(new RegExp('<a href="'+location.pathname+".*?>.*?>(.*?)</span>","")).exec(document.documentElement.innerHTML),b=RegExp("\u5348([\u524d\u5f8c])([0-9]{1,2}):([0-9]{2}) \u00b7 ([0-9]{4})\u5e74([0-9]{1,2})\u6708([0-9]{1,2})\u65e5","u").exec(String(a[1]));a=Number(b[4]);var c=Number(b[5]),d=Number(b[6]),f=Number(b[2])+12*("\u5f8c"===b[1]);b=Number(b[3]);time=24===f?(12===c&&31===d?String(a+1)+"-01-01":(2===c?28>d?0:29===d||0!==a % 400&&(0===a % 100||0!==a % 4):4===c||6===c||9===c||11===c?30===d:31===d)?String(a)+"-"+String(c+1).padStart(2,"0")+"-01":String(a)+"-"+String(c).padStart(2,"0")+"-"+String(d+1).padStart(2,"0"))+"_01:"+String(b).padStart(2,"0")+":00_JST":String(a)+"-"+String(c).padStart(2,"0")+"-"+String(d).padStart(2,"0")+"_"+String(f+1).padStart(2,"0")+":"+String(b).padStart(2,"0")+":00_JST";g.call(e,"https://twitter.com/search?q=from:"+h+"+include:nativeretweets+until:"+time+"&f=live")})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment