Skip to content

Instantly share code, notes, and snippets.

@pat-richter
Last active November 2, 2022 09:05
Show Gist options
  • Save pat-richter/00db6c1e57e8f68937df0d8ebad8d14e to your computer and use it in GitHub Desktop.
Save pat-richter/00db6c1e57e8f68937df0d8ebad8d14e to your computer and use it in GitHub Desktop.
2 helpful links for my twitter experience(expanding "Tweak New Twitter" user script)
async function createLatestTweetsLink(currentPage) {
let $nameContainer = await getElement(`[data-testid="UserName"] > div > div > div:last-child`, {
name: 'User ID',
stopIf: pageIsNot(currentPage),
})
if ($nameContainer == null) return
// open search page
let searchParamsTwitter = `from:${$nameContainer.innerText}`;
let twitterLink = `https://twitter.com/search?q=${encodeURIComponent(searchParamsTwitter)}&src=typed_query&f=live`
let searchIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYcAAAGHCAMAAABswG5MAAAC/VBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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IAkEgZEhk5wEvSjeKEbHCSulGASKBso3j0TSJso1iRJS3p2yjAHG+GmUbxaNpDSUbx4joTclGAeJMBUo2ikfTTMo1ihGRU5FyjQLEFEo1ChAZPpRqFHNEJGUaxYjYTIlGAaKUPqpxPJpGU55RjIgVlGYUIDIoyzhANKQso5gjhlGSUYyIWZRjFCDeoxSjeDR9ShlGMSK+owSjAHGB8osCxDVKL4o5opyyi2JE5FFyUYDIpNyiAHGKUosCRCplFgWIpZRYFCBmUF5RvL5GUFoxjAhHTcoqBhAnKKcoQCRRSlHMETQ9oBgRuVR6jwLEckonikdTGGUTw4g4TsfZUYAYSqnE8GhK96RMYhgRQyiPGEDsp9kBAwjbQ5REDHNEHKUQw4j4nJqSYQCRey/lD8GjqawnZQ/BiHCMotxhADGNMmc2iGUGRkMM5c10WWO5S1rHUtZcoUllXBiu0hTtIrVN48BwiE6IukxV14KfSXHUytiV6n4ChGEvrSm5WD4xV++830AL3QJUcfL522+CRtEjSdAyR+TmklstJ70dRvkROWOPXpHxp8+2E0kRVKckXkHDZqUcTLt4jeVknE5dOjPi9qXE/wFfSxiRljppVwAAAABJRU5ErkJggg==';
let searchStyle = `background: url(${searchIcon}); width: 16px; height: 16px; position: absolute; background-size: contain; transform: translate(10px, 2px);`
$nameContainer.querySelector('span').insertAdjacentHTML('afterend',` <a style="${searchStyle}" href="${twitterLink}" target="_blank"></a>`);
// import to InoReader (RSS)
let searchParamsInoreader = `from:${$nameContainer.innerText} -filter:replies`; // removed "-filter:retweets" for not showing everything on twitter(!)
let twitterLinkInoreader = `https://twitter.com/search?q=${encodeURIComponent(searchParamsInoreader)}&src=typed_query&f=live`;
let inoreaderLink = `https://www.inoreader.com/search/twitter/${encodeURIComponent(twitterLinkInoreader)}`;
let inoreaderIcon = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDhweCIgaGVpZ2h0PSI0OHB4IiB2aW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I5LjcyNDIxMjUsMTAuMjE3OTc1NiAyNC4zNzAyMjE1LDggMTguNjczMzk0Niw4IEwxOC42NzMzOTQ2LDggWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=';
let inoreaderStyle = `background: url(${inoreaderIcon}); width: 16px; height: 16px; position: absolute; background-size: contain; transform: translate(36px, 2px);`
$nameContainer.querySelector('span').insertAdjacentHTML('afterend',` <a style="${inoreaderStyle}" href="${inoreaderLink}" target="_blank"></a>`)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment