Skip to content

Instantly share code, notes, and snippets.

View novathefox's full-sized avatar
🦊
🦊

Nova novathefox

🦊
🦊
View GitHub Profile
@novathefox
novathefox / readme.md
Last active April 27, 2024 02:57
SpotiMS - Bring Back Media Session Controls To Spotify Web When Listening On Connect

SpotiMS
Bring Back That Damn Media Controller!

What changes with this?

You won't notice any change when playing locally or to a chromecast, but when playing to a spotify connect device, the media controls which are not usually there, re-appear.

Without With
image image

So, wait what are we talking about?

@novathefox
novathefox / Handle Bar Helpers.js
Last active August 21, 2023 07:38
Stackedit blog template, with blog name generated from file name
Handlebars.registerHelper('betterTitle', function (filepath) {
return new Handlebars.SafeString(
JSON.stringify(filepath.data.root.files[0].name).replace(/\.[^/.]+$/, "").replace('"', '').replace('"',"")
);
});
/* Extension using the JavaScript Speech API for text to speech */
/* Sayamindu Dasgupta <sayamindu@media.mit.edu>, April 2014 */
new (function() {
var ext = this;
/*function _get_voices() {
var ret = [];
var voices = speechSynthesis.getVoices();
@novathefox
novathefox / Minecraft Commands.md
Last active April 14, 2021 11:52
Minecraft Commands


Minecraft Commands

Java

Read entities inventory:
Must be done in command block. To trigger redstone or another commandblock, you must set the main commmandblocks’ setttings to Always Active On, and set the command block type to repeat, then place a comparator to get redstone output

/execute if entity !!SELECTOR!![nbt={Inventory:[{id:"!!ITEM_ID!!",tag:{display:{Name:'{"text":"!!Item_Display_Name!!"}'}}}]}]