Skip to content

Latest commit

 

History

History
109 lines (91 loc) · 16 KB

maz_twitch_streamer_suggestions.md

File metadata and controls

109 lines (91 loc) · 16 KB

MAZ Twitch streamer suggestions

As seen on my Twitch profile page (order is roughly based on preference).

Updated 2024-03-27.

Suggested Streamers

Click to hide 55 channels

Scroll UP | TOP

Create your own list

You can create your personal streamer suggestion list in your Twitch dashboard:

  • Go on https://twitch.tv/ and login
  • Click on your Profile picture, then on Creator Dashboard (https://dashboard.twitch.tv/)
  • Go to SettingsChannelFeatured Content
  • Scroll down to My streamer Shelf, activate Suggested Channels, and click on 🡭 Edit
  • Add your favorite streamers by name

Code to get channel list

Navigate to Suggested Channels page as seen above and make sure the entire list is loaded by scrolling all the way down.

Then, open developer-console [F12] and copy-paste the following code:

(()=>{//~ copy suggested channels list as markdown
    "use strict";
    const list=Array.prototype.map.call(
        document.querySelectorAll("div.autohost-list-edit ul>div.autohost-list-item"),
        item=>(streamer=>`- <img alt="Channel icon" title="Channel icon" height="32" src="${item.querySelector("img").src}"> [${streamer}](https://twitch.tv/${streamer.toLowerCase()} "Twitch - ${streamer}")`)(item.querySelector("span").textContent)
    );
    console.log("Found %i channels",list.length);
    return(markdown=>window.copy?(window.copy(markdown),"markdown copied"):markdown)(`## Suggested Streamers\n\n<details open><summary>Click to hide ${list.length} channels</summary>\n\n${list.join("\n")}\n\n</details>`);
})();

It copies (or prints out) the entire list formatted as markdown, including the amount of channels (exactly like the list above).

Alternatively, you can, instead of pasting above code into the dev-console, create a new bookmark named something like Twitch featured channels to markdown with the following text as the URL and click on it whenever you need to copy the list (without opening dev-console).

javascript:(list=>list.length===0?alert("No featured channels found"):navigator.clipboard.writeText(`## Suggested Streamers\n\n<details open><summary>Click to hide ${list.length} channels</summary>\n\n${list.join("\n")}\n\n</details>`).then(()=>alert(`Markdown list with ${list.length} channels copied`)).catch(reason=>alert("Couldn't copy markdown, reason: %O",reason)))(Array.prototype.map.call(document.querySelectorAll("div.autohost-list-edit ul>div.autohost-list-item"),item=>(streamer=>`- <img alt="Channel icon" title="Channel icon" height="32" src="${item.querySelector("img").src}"> [${streamer}](https://twitch.tv/${streamer.toLowerCase()} "Twitch - ${streamer}")`)(item.querySelector("span").textContent)));

Scroll TOP