Skip to content

ニコニコお知らせのニコニ広告通知をサービスごとに非表示にしたりするやつ by gimmickgang

Details

Authorgimmickgang

LicenseNo License

Categorynicovideo,niconico,ニコニコ

Created

Updated

Size4.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

ニコニコお知らせのニコニ広告通知をサービスごとに非表示にします
大百科使ってるけど「あなたの編集した記事がニコニ広告されました」が多すぎてうざいので。

FireFoxでは使えません。

Notes

お知らせ一覧のページではスクロールが発生しないと過去のお知らせが読み込まれないので、一旦解除して下にスクロールさせてから再度有効にすると過去90日分読み込まれます。

Source code

/* ==UserStyle==
@name           ニコニコお知らせ広告通知非表示
@namespace      https://twitter.com/gimmickgang
@version        1.0.2
@description    ニコニコお知らせ広告通知非表示
@author         gimmickgang
@license        No License
@preprocessor	stylus
@var            select select_supporter "あなたの貢献が感謝されました" ["non-select","non-select_*"]
@var            checkbox select_supporter_video "┗動画" 0
@var            checkbox select_supporter_live "┗生放送" 0
@var            checkbox select_supporter_seiga "┗静画" 0
@var            checkbox select_supporter_solid "┗立体" 0
@var            select select_creator "ニコニ広告されました" ["non-select","non-select_*"]
@var            checkbox select_supporter_video "┗動画" 0
@var            checkbox select_creator_video "┗動画" 0
@var            checkbox select_creator_live "┗生放送" 0
@var            checkbox select_creator_seiga "┗静画" 0
@var            checkbox select_creator_dic "┗大百科" 1
@var            checkbox select_creator_solid "┗立体" 0
==/UserStyle== */
@-moz-document url-prefix("https://www.nicovideo.jp"), url-prefix("https://seiga.nicovideo.jp"), url-prefix("https://live.nicovideo.jp"), url-prefix("https://ch.nicovideo.jp"), url-prefix("https://dic.nicovideo.jp"), url-prefix("https://anime.nicovideo.jp"), url-prefix("https://inform.nicovideo.jp"), url-prefix("https://commons.nicovideo.jp"), url-prefix("https://news.nicovideo.jp"), url-prefix("https://koken.nicovideo.jp"), url-prefix("https://3d.nicovideo.jp"), url-prefix("https://com.nicovideo.jp"), url-prefix("https://q.nicovideo.jp"), url-prefix("https://blog.nicovideo.jp"), url-prefix("https://www.upload.nicovideo.jp"), url-prefix("https://income.nicovideo.jp"), url-prefix("https://creator-support.nicovideo.jp"), url-prefix("https://enquete.nicovideo.jp"), url-prefix("https://site.nicovideo.jp"), url-prefix("https://app.nicovideo.jp"), url-prefix("https://sp.nicovideo.jp"), url-prefix("https://sp.seiga.nicovideo.jp"), url-prefix("https://sp.live.nicovideo.jp"), url-prefix("https://sp.ch.nicovideo.jp") {
 if select_creator_video {
  .common-header-i4xr99 > div:has(a[href*="/creator/contents/video/"]) {
   display: none !important;
  }
 }

 if select_supporter_video {
  .common-header-i4xr99 > div:has(a[href*="/supporter/contents/video/"]) {
   display: none !important;
  }
 }

 if select_creator_live {
  .common-header-i4xr99 > div:has(a[href*="/creator/contents/live/"]) {
   display: none !important;
  }
 }

 if select_supporter_live {
  .common-header-i4xr99 > div:has(a[href*="/supporter/contents/live/"]) {
   display: none !important;
  }
 }

 if select_creator_seiga {
  .common-header-i4xr99 > div:has(a[href*="/creator/contents/seiga/"]) {
   display: none !important;
  }
 }

 if select_supporter_seiga {
  .common-header-i4xr99 > div:has(a[href*="/supporter/contents/seiga/"]) {
   display: none !important;
  }
 }

 if select_creator_solid {
  .common-header-i4xr99 > div:has(a[href*="/creator/contents/solid/"]) {
   display: none !important;
  }
 }

 if select_supporter_solid {
  .common-header-i4xr99 > div:has(a[href*="/supporter/contents/solid/"]) {
   display: none !important;
  }
 }

 if select_creator_dic {
  .common-header-i4xr99 > div:has(a[href*="dic"]) {
   display: none !important;
  }
 }
}

@-moz-document url-prefix("https://inform.nicovideo.jp") {
 if select_creator_video {
  li:has(a[href*="/creator/contents/video/"]) {
   display: none !important;
  }
 }

 if select_supporter_video {
  li:has(a[href*="/supporter/contents/video/"]) {
   display: none !important;
  }
 }

 if select_creator_live {
  li:has(a[href*="/creator/contents/live/"]) {
   display: none !important;
  }
 }

 if select_supporter_live {
  li:has(a[href*="/supporter/contents/live/"]) {
   display: none !important;
  }
 }

 if select_creator_seiga {
  li:has(a[href*="/creator/contents/seiga/"]) {
   display: none !important;
  }
 }

 if select_supporter_seiga {
  li:has(a[href*="/supporter/contents/seiga/"]) {
   display: none !important;
  }
 }

 if select_creator_solid {
  li:has(a[href*="/creator/contents/solid/"]) {
   display: none !important;
  }
 }

 if select_supporter_solid {
  li:has(a[href*="/supporter/contents/solid/"]) {
   display: none !important;
  }
 }

 if select_creator_dic {
  li:has(a[href*="dic"]) {
   display: none !important;
  }
 }
}

Reviews

No reviews yet.