Created
July 12, 2020 12:36
-
-
Save moriglia/6080c8a137d722f198a07075872b60cb to your computer and use it in GitHub Desktop.
Remove suggested videos in Microsoft Stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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