Skip to content

Instantly share code, notes, and snippets.

@moriglia
Created July 12, 2020 12:36
Show Gist options
  • Save moriglia/6080c8a137d722f198a07075872b60cb to your computer and use it in GitHub Desktop.
Save moriglia/6080c8a137d722f198a07075872b60cb to your computer and use it in GitHub Desktop.
Remove suggested videos in Microsoft Stream
// ==UserScript==
// @name StopDisgustingMedicineVideos
// @include /^https?://web\.microsoftstream\.com/video/.*$/
// ==/UserScript==
/* Import this script in GreaseMonkey
* in order to get rid of suggested videos
* in Microsoft Stream, when they include
* surgical videos you don't feel like
* being suggested to watch
*/
async function delete_disgusting_div() {
// find the "related-videos" div
disgusting_div = document.getElementById("related-videos");
while (disgusting_div == null){
await new Promise(resolve => setTimeout(resolve, 500));;
disgusting_div = document.getElementById("related-videos");
}
// remove it
disgusting_div.remove();
// Yell at medicine students
console.log("The disgusting videos uploaded by the cruel medicine students should have gone, hopefully!");
}
delete_disgusting_div();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment