您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Shows the fulltitle on twitch and removes the pin for cheers on top of the stream
当前为
// ==UserScript== // @name Twitch fulltitle and no cheerpin // @namespace http://tampermonkey.net/ // @version 0.1 // @description Shows the fulltitle on twitch and removes the pin for cheers on top of the stream // @author Bobocato // @match https://www.twitch.tv/* // @grant none // ==/UserScript== /* Taken from https://stackoverflow.com/questions/9153718/change-the-style-of-an-entire-css-class-using-javascript/14249194#14249194 */ function cssrules(){ var rules={}; var ds=document.styleSheets,dsl=ds.length; for (var i=0;i<dsl;++i){ var dsi=ds[i].cssRules,dsil=dsi.length; for (var j=0;j<dsil;++j) rules[dsi[j].selectorText]=dsi[j]; } return rules; } function css_getclass(name,createifnotfound){ var rules=cssrules(); if (!rules.hasOwnProperty(name)) throw 'todo:deal_with_notfound_case'; return rules[name]; } (function() { 'use strict'; css_getclass(".tw-ellipsis").style.textOverflow = "initial"; css_getclass(".tw-ellipsis").style.whiteSpace = "initial"; css_getclass("pinned-cheer-v2").style.display = "none"; })();