cletusc / Userscript--Twitch-Chat-Emotes

Adds a button to Twitch that allows you to "click-to-insert" an emote.
http://cletusc.github.io/Userscript--Twitch-Chat-Emotes/
MIT License
36 stars 20 forks source link

Emote getter removing emotes does not actually remove #92

Closed cletusc closed 8 years ago

cletusc commented 8 years ago

From night/BetterTTV/issues/1189:

As shown in the attached screenshot below the Channel Emote list is not updating when switching channels within the same tab, for example through Following/Games/Channels, or switching to a hosted channel.

Green = Channel 1 Yellow = Channel 2 Red = Channel 3

Confirmed... STR:

  1. Run standalone only.
  2. Open console and enter this:
var arr = [
  {
    text: 'test1',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/33/1.0'
  },
  {
    text: 'test2',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/34/1.0'
  },
  {
    text: 'test3',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/35/1.0'
  },
];
emoteMenu.registerEmoteGetter('Test', function () {
  return arr;
});

which registers the getter and yields this: first three emotes

  1. Enter this in console, close and reopen the menu:
var arr = [
  {
    text: 'test4',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/36/1.0'
  },
  {
    text: 'test5',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/37/1.0'
  },
  {
    text: 'test6',
    url: 'https://static-cdn.jtvnw.net/emoticons/v1/38/1.0'
  },
];

which yields: all six emotes

Expected result after step 4:

last three emotes only