Created
October 31, 2019 21:38
-
-
Save Technetium1/7693433657d76059b12132a960576299 to your computer and use it in GitHub Desktop.
TC is dead, move to a better site
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 TC SUCKS | |
// @match https://tinychat.com/* | |
// @exclude https://tinychat.com/*?1* | |
// @exclude /.*tinychat\.com\/(settings|promote|gifts|subscription|coins|start|privacy\.|terms\.)([#\/].+)?/ | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function removeThisShit(){ | |
var bodyElem = document.querySelector("body"); | |
var webappOuter = document.querySelector("tinychat-webrtc-app"); | |
var webappElem = webappOuter.shadowRoot; | |
var videolistElem = webappElem.querySelector("tc-videolist").shadowRoot; | |
var camQueryString = ".videos-items:last-child > .js-video"; | |
var camElems = videolistElem.querySelectorAll(camQueryString); | |
camElems.forEach(function(item, index){ | |
item.querySelector("tc-video-item").shadowRoot.querySelector(".video").classList.remove("blured"); | |
}); | |
setTimeout(removeThisShit, 5); | |
} | |
removeThisShit(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment