Peaceful Twitch (without numbers / gamification)

14/09/2022, 00:07:48

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Peaceful Twitch (without numbers / gamification)
// @namespace   Violentmonkey Scripts
// @match       https://*.twitch.tv/*
// @grant       none
// @version     1.1
// @author      Code With Sarah
// @description 14/09/2022, 00:07:48
// @run-at      document-idle
// ==/UserScript==

  // hide viewer count for list view (and front page)
  // hide viewer count while watching a stream:
let styles = `
.iiA-dIp.side-nav-card__live-status span.CoreText-sc-cpl358-0.iUznyJ,
.front-page-carousel div.Layout-sc-nxg1ff-0.bAGmmD > p.CoreText-sc-cpl358-0:last-child {
    display: none;
}

.home-header-sticky p.CoreText-sc-cpl358-0.gVjya,
.about-section__panel--content div.Layout-sc-nxg1ff-0.imwaRG:first-child,
.ScPositionCorner-sc-1iiybo2-1:nth-child(3) .tw-media-card-stat,
[data-a-target='animated-channel-viewers-count'] {
  visibility: hidden;
}

.home-header-sticky p.CoreText-sc-cpl358-0.gVjya::before,
.about-section__panel--content div.Layout-sc-nxg1ff-0.imwaRG:first-child::before,
.ScPositionCorner-sc-1iiybo2-1:nth-child(3) .tw-media-card-stat::before,
[data-a-target='animated-channel-viewers-count']::before {
  content: '🌷🌸🌻';
  visibility: visible;
  /*
  display: block;
  position: absolute;
  left: 0;*/
  background: rgba(0,0,0,0.2);
}

.ach-card,
.quest-header,
[data-test-selector='not-completed-achievements-list'],
[data-test-selector='recently-completed-achievements-list'] {
  visibility: hidden;
}

.ach-card,
.quest-header,
[data-test-selector='not-completed-achievements-list'],
[data-test-selector='recently-completed-achievements-list'] {
  position: relative;
}

.ach-card::after,
.quest-header::after,
[data-test-selector='not-completed-achievements-list']::before,
[data-test-selector='recently-completed-achievements-list']::before {
  content: '🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸🌻🌷🌸';
  visibility: visible;
`;

let styleSheet = document.createElement("style");
styleSheet.innerText = styles;

document.head.appendChild(styleSheet);