userChrome.css・userContent.cssスレ Part12

■ このスレッドは過去ログ倉庫に格納されています
2022/04/21(木) 23:24:46.59ID:h1cG3tIy0
!extend:checked:vvvvv:1000:512
次スレを立てる方は↑を二行重ねて書いてください

●※前スレ
userChrome.css・userContent.cssスレ Part11
https://egg.5ch.net/test/read.cgi/software/1584753386/

●拡張機能
Stylish
https://addons.mozilla.org/ja/firefox/addon/stylish/
Stylus
https://addons.mozilla.org/ja/firefox/addon/styl-us/
User Style Manager (レガシーアドオン・要Classic Add-ons Archive)
https://addons.mozilla.org/ja/firefox/addon/user-style-manager/

●スクリプト
userChromeJS/UserCSSLoader at master ・ Griever/userChromeJS
https://github.com/Griever/userChromeJS/tree/master/UserCSSLoader
UserCSSManager (要userChromeES)
https://greasyfork.org/scripts/35880

●CSS(ユーザースタイルを記入するべきファイル)
userChrome.css(UI) / userContent.css(Web Site)

●関連サイト
Userstyles.org
https://userstyles.org/
CSS: カスケーディングスタイルシート | MDN
https://developer.mozilla.org/ja/docs/Web/CSS
とほほのスタイルシート入門
http://www.tohoho-web.com/css/
VIPQ2_EXTDAT: checked:vvvvv:1000:512:: EXT was configured
2023/11/10(金) 15:40:27.75ID:voYkgPVmd
Chromeだったらアドオンでいくつかあるのだけど、Firefoxには見当たらないので、
YouTubeのコントロールバーをプレイヤーの下に表示するCSSを作りました。
標準プレイヤーのみの対応ですが、よければ使ってください。

/* 標準プレイヤーの高さをコントロールバーの分増やす */
ytd-watch-flexy:not([theater]) #player-container-inner {
height: 51px !important
}
/* プレイヤーバックの色変更 */
ytd-watch-flexy:not([theater]) #movie_player {
background-color: #000000 !important
}

なお、コントロールバーは一定時間経てば消えますが、
常時表示したい場合は、次のスクリプトをインストールしてください。

YouTube Permanent ProgressBar
https://greasyfork.org/ja/scripts/426283-youtube-permanent-progressbar

このCSS、シネマモードでも使えるようにしたいのですが、どうもうまく行きません。
もしいい方法があれば、助言お願いします。
2023/11/10(金) 20:24:32.44ID:f3pKcrn20
Firefoxのポップアップの背景色だけ有効にしたいでのですが
どのようにすれば良いですか

/* ポップアップ */
.menupopup-arrowscrollbox{
background-color: Pink !important;
}
2023/11/10(金) 21:03:58.18ID:WOCSS5Dk0
Pinkじゃなくてとりあえずredで試してみたら?
俺は以下で変えられてる

/* ポップアップメニューの背景色 */
.menupopup-arrowscrollbox {
background-color: #F2F2F2 !important;
}
2023/11/10(金) 23:08:12.50ID:f3pKcrn20
FirefoxのUI以外はどのように除外すればよいのでしょう?
一部のサイトで色が変わってしまいます
2023/11/11(土) 06:02:19.50ID:DRpcqQZc0
>>607

:root {
--controller-height: 51px;
}
#full-bleed-container {
margin-bottom: var(--controller-height) !important;
}
ytd-watch-flexy[theater] {
z-index: 0 !important;
}
ytd-watch-flexy[theater] .html5-video-player {
overflow: visible !important;
}
ytd-watch-flexy[theater] .ytp-chrome-bottom {
margin-bottom: calc(var(--controller-height) * -1) !important;
}
ytd-watch-flexy[theater] #player-container::after {
content: '';
position: absolute;
width: 100%;
height: var(--controller-height);
margin-bottom: calc(var(--controller-height) * -1);
background: #000;
z-index: -1;
}

--controller-heightでコントローラー位置を調節できる
2023/11/11(土) 08:01:50.19ID:DRpcqQZc0
>>611
横着したら普通の方のデザインが崩れてたので訂正
:root {
--controller-height: 51px;
}
ytd-watch-flexy[theater] #full-bleed-container {
margin-bottom: var(--controller-height) !important;
}
ytd-watch-flexy[theater] {
z-index: 0 !important;
}
ytd-watch-flexy[theater] .html5-video-player {
overflow: visible !important;
}
ytd-watch-flexy[theater] .ytp-chrome-bottom {
margin-bottom: calc(var(--controller-height) * -1) !important;
}
ytd-watch-flexy[theater] #player-container::after {
content: '';
position: absolute;
width: 100%;
height: var(--controller-height);
margin-bottom: calc(var(--controller-height) * -1);
background: #000;
z-index: -1;
}

ついでにツールチップの位置を下げるやつ

.ytp-tooltip {
margin-top: var(--controller-height) !important;
}
2023/11/11(土) 21:50:24.44ID:iFV/7D8Nd1111
>>612
うまく行きました。
本当にありがとうございます。
このCSSを見ると、自分のスキルではまだまだ無理だと実感しましたw

個人的に、コントロールバーを下にずらしたので、
バーを覆っていた影が気になるため、非表示にしました。

/* プレイヤー下部の影の非表示 */
ytd-watch-flexy .ytp-gradient-bottom {
display: none !important
}
2023/11/15(水) 00:03:48.32ID:6c0l3urr0
>>593
削除されてました
1850342 - Remove :-moz-loading, and avoid exposing :-moz-broken pseudo-class to content.
ttps://bugzilla.mozilla.org/show_bug.cgi?id=1850342
615名無しさん@お腹いっぱい。 (ワッチョイ 7f76-Zoup)
垢版 |
2023/11/16(木) 15:55:02.31ID:GAfZis5L0
ここにある
https://www.userchrome.org/firefox-89-styling-proton-ui.html
↓のように、アクティブタブの上部に青線、だけほしいので書式お願いします。

Container/Active Tab color line:
+Blue Line on active tab
2023/11/16(木) 16:39:40.94ID:dwMVWCtr0
/* タブの上部のライン */
.tab-background[multiselected],
.tab-background[selected] {
background: linear-gradient(to bottom, #0A84FF 2px, var(--toolbar-bgcolor) 0px) !important;
outline: none !important;
}
2023/11/16(木) 20:15:35.11ID:GAfZis5L0
>>615
ありがとうございます。試したのですが出来ないみたいですので
とりあえずは、そこのCSS based on above options:
での書式で行きます。
2023/11/16(木) 21:16:15.52ID:9vD6Cyf/0
/* アクティブタブの上に青い線 */
.tab-background:is([selected], [multiselected]) {
border-top: 1px solid Blue !important;
}
2023/11/16(木) 21:48:31.17ID:GAfZis5L0
>>618
ありがとうございます。出来ました。
2023/11/17(金) 19:08:03.92ID:OXKGruvy0
/* アクティブタブの文字色 */
label.tab-text.tab-label[selected="true"]{font-weight: bold !important;}

これが119で動かないんだけどどこを修正すれば動きますか?
2023/11/17(金) 19:33:17.61ID:xX6UYbsC0
="true"
を削除
2023/11/17(金) 20:32:00.21ID:UwG7SfoR0
/* アクティブタブの背景色 */
.tab-background:is([selected], [multiselected])

/* アクティブタブの文字色 */
.tabbrowser-tab:is([visuallyselected], [multiselected])

/* 非アクティブタブの背景色 */
.tab-background:not([selected], [multiselected])

/* 非アクティブタブの文字色 */
.tabbrowser-tab:not([visuallyselected], [multiselected])

/* アクティブにマウスオンしたときの背景色 */
.tabbrowser-tab:hover > .tab-stack > .tab-background:is([selected], [multiselected])

/* アクティブにマウスオンしたときの文字色 */
.tabbrowser-tab:hover > .tab-stack >:is([selected], [multiselected])

/* 非アクティブにマウスオンしたときの背景色 */
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected], [multiselected])

/* 非アクティブにマウスオンしたときの文字色 */
.tabbrowser-tab:hover > .tab-stack >:not([selected], [multiselected])
2023/11/18(土) 19:17:35.84ID:cgw9DvTW0
firefoxでstylus更新したらCSS効かなくなったんだけどなんで?
2023/11/18(土) 22:56:43.75ID:XB8apQtC0
>>623
バージョンは?
1.5.37 はバグありで取り下げられた
2023/11/20(月) 23:52:25.21ID:9MiWme6b0HAPPY
現バージョンでの音が出ているタブの色を変える方法が判明したら教えていただけますか
2023/11/21(火) 02:53:40.34ID:PceYQi9w0
>>625

.tabbrowser-tab:is([soundplaying], [muted]) .tab-background {
background-color: #f00 !important;
}
2023/11/21(火) 04:15:33.59ID:MY2f9Xb80
>>626
ほんと助かります、どうもありがとう
2023/11/21(火) 18:02:55.23ID:KzKE9Xic0
>>626
動くアイコンより見やすくていいね
2023/11/21(火) 19:20:04.63ID:YsTcpB/K0
俺はアイコンで音のオンオフするから全部乗せにてるわ
普通に見やすい

/* サウンドタブをアニメーション化 (赤) */
/* ミュートアイコンに色を付ける (黒) */
/* サウンドタブのファビコンを復活 */
/* サウンドタブの背景色+半透明化 */
2023/11/22(水) 16:28:41.22ID:5dG5VQLh0
Firefox 120で結構変更入ったっぽい?
まあESR使ってるからあんまり関係ないけど
2023/11/22(水) 16:45:50.24ID:DbYbpYZP0
アクティブタブ上部に線をつけたいです
■ このスレッドは過去ログ倉庫に格納されています
5ちゃんねるの広告が気に入らない場合は、こちらをクリックしてください。

ニューススポーツなんでも実況