Skip to content

Instantly share code, notes, and snippets.

@Technetium1
Created October 31, 2019 21:38
Show Gist options
  • Save Technetium1/7693433657d76059b12132a960576299 to your computer and use it in GitHub Desktop.
Save Technetium1/7693433657d76059b12132a960576299 to your computer and use it in GitHub Desktop.
TC is dead, move to a better site
// ==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