Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Tubaro no comments
- // @version 1
- // @grant none
- // @include https://tubaro.aperu.net/*
- // ==/UserScript==
- (function() {
- function addCss(cssString) {
- var head = document.getElementsByTagName('head')[0];
- var newCss = document.createElement('style');
- newCss.type = "text/css";
- newCss.innerHTML = cssString;
- head.appendChild(newCss);
- }
- for (const elem of document.getElementsByClassName("videoListo-elektoj-ordo-ero")) {
- if (elem.classList.contains('ero-3el6') ||
- elem.classList.contains('ero-6el6')) {
- elem.style.display = "none";
- } else {
- elem.style.width = "50%";
- elem.classList.replace('ero-2el6', 'ero-3el6');
- elem.classList.replace('ero-5el6', 'ero-6el6');
- }
- }
- addCss('.videoListo-ero-komentoj { display: none !important; }');
- addCss('#comments { display: none !important; }');
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement