Skip to content

Instantly share code, notes, and snippets.

@urasandesu
Created April 6, 2023 05:27
Show Gist options
  • Save urasandesu/56ef65d26c0761770b02bfbe2d7b303d to your computer and use it in GitHub Desktop.
Save urasandesu/56ef65d26c0761770b02bfbe2d7b303d to your computer and use it in GitHub Desktop.
The bookmarklet to search urasandesu last 1 month's tweets with retweets.
javascript: (function () {
let user = 'urasandesu';
let today = new Date();
let lastMonth = new Date();
lastMonth.setMonth(today.getMonth() - 1);
let since = lastMonth.toISOString().slice(0, 10);
let until = today.toISOString().slice(0, 10);
location.href = 'https://twitter.com/search?q=' + encodeURIComponent(`from:${user} include:nativeretweets since:${since} until:${until}`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment