「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| 1行目: | 1行目: | ||
/* | /* 1. ページ最上部からコンテンツが始まるまでの間にある広告を根こそぎ消す */ | ||
#mw-page-base + ins.adsbygoogle, | |||
#mw-head-base + ins.adsbygoogle, | |||
#mw-navigation + ins.adsbygoogle, | |||
#p-logo + ins.adsbygoogle, | |||
body > ins.adsbygoogle { | |||
display: none !important; | |||
max-height: 0 !important; | |||
overflow: hidden !important; | |||
} | |||
/* 2. ヘッダー、ナビ、ロゴ周りの隙間に入り込む広告を封鎖 */ | |||
#mw-head ins.adsbygoogle, | |||
#mw-navigation ins.adsbygoogle, | #mw-navigation ins.adsbygoogle, | ||
#p-logo ins.adsbygoogle, | #p-logo ins.adsbygoogle, | ||
. | .vector-menu-content ins.adsbygoogle { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 3. 広告のせいで空いてしまった「謎の巨大な隙間」も詰める */ | ||
.google-anno-skip { | |||
display: none !important; | display: none !important; | ||
} | } | ||
2026年2月18日 (水) 14:06時点における版
/* 1. ページ最上部からコンテンツが始まるまでの間にある広告を根こそぎ消す */
#mw-page-base + ins.adsbygoogle,
#mw-head-base + ins.adsbygoogle,
#mw-navigation + ins.adsbygoogle,
#p-logo + ins.adsbygoogle,
body > ins.adsbygoogle {
display: none !important;
max-height: 0 !important;
overflow: hidden !important;
}
/* 2. ヘッダー、ナビ、ロゴ周りの隙間に入り込む広告を封鎖 */
#mw-head ins.adsbygoogle,
#mw-navigation ins.adsbygoogle,
#p-logo ins.adsbygoogle,
.vector-menu-content ins.adsbygoogle {
display: none !important;
}
/* 3. 広告のせいで空いてしまった「謎の巨大な隙間」も詰める */
.google-anno-skip {
display: none !important;
}