Neutral TVer

TVer上の評価数を非表示にします

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Neutral TVer
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  TVer上の評価数を非表示にします
// @match        https://tver.jp/search
// @match        https://tver.jp/episodes/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tver.jp
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var myId = 'custom_094bcd02d90b9ef02c9e652d325bf21a';
    var hideTarget = ['.episode-pattern-b-layout_statistics__W1fsR', '.like-button_label__wRGiw', '.episode-pattern-c_favoriteCountWrapper__3qoal'];
    var myStyleContent = hideTarget.join(', ');
    myStyleContent += '{ visibility: hidden }';

    var myStyleElement = document.getElementById(myId);
    if ( myStyleElement ) {
        return;
    }
    myStyleElement = document.createElement('style');
    myStyleElement.id = myId;
    document.head.appendChild(myStyleElement);
    myStyleElement.sheet.insertRule(myStyleContent);
})();