Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name BskyFeedToEmote
- // @namespace http://wutata.bsky.social/
- // @version 2024-11-27
- // @description Change Feed names to emotes
- // @author Wu Atnium
- // @match https://bsky.app/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app
- // @grant none
- // @require https://code.jquery.com/jquery-3.7.0.min.js
- // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
- // ==/UserScript==
- /* globals jQuery, $, waitForKeyElements */
- waitForKeyElements('div[data-testid^="homeScreenFeedTabs-"]', feedTabby);
- var nameLookup = {
- Discover: 'π¦',
- Following: 'π',
- Mutuals: 'π―ββοΈ',
- "Quiet Posters": 'π΄',
- "Popular With Friends": 'π€΄'
- };
- function feedTabby(jnode)
- {
- if(jnode.length == 0 || jnode[0].dataset.testid.startsWith("homeScreenFeedTabs-selector"))
- {
- return;
- }
- var type = jnode[0].dataset.testid.substr(jnode[0].dataset.testid.lastIndexOf('-')+1);
- if(type in nameLookup)
- {
- jnode[0].innerHTML = nameLookup[type];
- console.log(jnode);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement