# nlフィルタ定義(文字コード判定用なのでこの行は削除しないこと)

#original 20170201
#Updated 20170310
#Updated 20170313
#Updated 20170315
#Updated 20170522


[Replace]
Name = ヘッダ超短縮表示用フィルタ
URL = (www|live|seiga|ext\.seiga|ch|game|app|commons|3d|com|ichiba|uad|niconare|jk|news|enquete|blog)\.nicovideo\.jp/
ContentType = text/html
EachLine = TRUE
Match<
<span>Niconico</span>
<span>Videos </span>
<span>Live </span>
<span>Community</span>
<span>Upgrade to Premium</span>
<span>Upload Video</span>
<span>Ranking</span>
<span>Menu▼</span>
<span>動画</span>
<span>静画</span>
<span>生放送</span>
<span>チャンネル</span>
<span>その他▼</span>
<span>プレミアム登録</span>
<span>動画投稿</span>
<span>(?:|総合)ランキング</span>
<span>キャッシュ▼</span>
<span>メニュー▼</span>
<span>ブロマガ</span>
<span>RPG</span>
<span>マストドン</span>
>
Replace<
<span>N</span>
<span>V</span>
<span>L</span>
<span>C</span>
<span>P</span>
<span>U</span>
<span>R</span>
<span>M▼</span>
<span>動</span>
<span>静</span>
<span>生</span>
<span>チ</span>
<span>他▼</span>
<span>P</span>
<span>投</span>
<span>R</span>
<span>C▼</span>
<span>M▼</span>
<span>ブ</span>
<span>R</span>
<span>マ</span>
>


[Style]
Name = ヘッダ超短縮表示用フィルタ[CSS]
URL = (www|live|seiga|ext\.seiga|ch|game|app|commons|3d|com|ichiba|uad|niconare|jk|news|enquete|blog)\.nicovideo\.jp
Append<
/*------------------
ヘッダ超短縮表示用フィルタ[CSS]
-------------------*/

a#siteHeaderNicopoPurchase{
display:none !important;
}

#siteHeaderUserIconContainer > img:nth-child(1){
  display:none !important;
}

.userNickNameSuffix{
  display:none !important;
}

.unit{
  display:none !important;
}

#siteHeaderUserNickNameContainer{
  font-size: 0px;
}
#siteHeaderUserNickNameContainer::before{
  font-size: 12.0833px;
  content: "My"
}
/*------------------
ヘッダ超短縮表示用フィルタ[CSS](END)
-------------------*/
>

[Replace]
Name = ニコニコ動画用右ヘッダ短縮
URL = www\.nicovideo\.jp/
ContentType = text/html
Match<
<span>オススメ</span>
>
Replace<
<span>オ</span>
>

[Replace]
Name = live用右ヘッダ短縮
URL = live\.nicovideo\.jp/
ContentType = text/html
Match<
<span class="favoriteText">フォロー</span>
>
Replace<
<span class="favoriteText">フ</span>
>

[Replace]
Name = チャンネルヘッダ短縮
URL = ch\.nicovideo\.jp/
ContentType = text/html
EachLine = TRUE
Match<
<span class="narrow">チャンネル</span>
<span class="narrow">ブロマガ</span>
>
Replace<
<span class="narrow">チ</span>
<span class="narrow">ブ</span>
>

[Style]
Name = チャンネルヘッダ短縮CSS
URL = ch\.nicovideo\.jp/
ContentType = text/html
EachLine = TRUE
Append<
.san{
  display: none !important;
}
#siteHeaderNotificationPremium > span:nth-child(1){
  font-size: 0px;
}
#siteHeaderNotificationPremium > span:nth-child(1)::before{
  font-size: 12.833px;
  content: "P";
}
.siteHeaderChSignup > a:nth-child(1) > span:nth-child(1){
    font-size: 0px;
}
.siteHeaderChSignup > a:nth-child(1) > span:nth-child(1)::before{
     font-size: 12.833px;
  content: "開";
}
.purchased > a:nth-child(1) > span:nth-child(1){
 font-size: 0px;  
}
.purchased > a:nth-child(1) > span:nth-child(1)::before{
     font-size: 12.833px;
  content: "済"; 
}
.siteHeaderMenuList > li:nth-child(4) > a:nth-child(1) > span:nth-child(1){
    font-size: 0px;
}
.siteHeaderMenuList > li:nth-child(4) > a:nth-child(1) > span:nth-child(1)::before{
    font-size: 12.833px;
  content: "R"; 
}
#siteHeaderRightMenu > a:nth-child(1) > span:nth-child(1){
  font-size: 0px;
}
#siteHeaderRightMenu > a:nth-child(1) > span:nth-child(1)::before{
    font-size: 12.833px;
  content: "M▼";
}
>


[Style]
Name = アプリヘッダ短縮CSS
URL = app\.nicovideo\.jp/
ContentType = text/html
EachLine = TRUE
Append<
.siteHeaderMenuList > li:nth-child(2) > a:nth-child(1) > span:nth-child(1){
  font-size: 0px;
}
.siteHeaderMenuList > li:nth-child(2) > a:nth-child(1) > span:nth-child(1)::before{
  font-size: 12.833px;
  content: "App";
}
.siteHeaderMenuList > li:nth-child(3) > a:nth-child(1) > span:nth-child(1){
  font-size: 0px;
}
.siteHeaderMenuList > li:nth-child(3) > a:nth-child(1) > span:nth-child(1)::before{
    font-size: 12.833px;
  content: "Pt.";
}
>