Skip to content

Instantly share code, notes, and snippets.

@hyeonseok
Last active April 13, 2017 07:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyeonseok/7243239 to your computer and use it in GitHub Desktop.
Save hyeonseok/7243239 to your computer and use it in GitHub Desktop.
UserCSS for Firefox.
/**
* UserCSS for Firefox.
* https://gist.github.com/hyeonseok/7243239
*
* ln -s ~/Dropbox/src/firefox-usercss/userContent.css /Users/hyeonseok/Library/Application\ Support/Firefox/Profiles/{USER_PROFILE}/chrome/userContent.css
*/
* {
-webkit-touch-callout: text !important;
-webkit-user-select: text !important;
-khtml-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important
}
/* http://hyeonseok.com/soojung/usability/2011/11/15/682.html */
input[type=text] {
ime-mode: auto !important;
}
/* http://stackoverflow.com/questions/18262887/usercontent-css-to-get-fixed-width-font-in-firefox */
@-moz-document domain(mail.google.com) {
.gt {
font-size: 75% !important;
}
.gs .ii {
font-family: Monaco, monospace !important;
}
}
@-moz-document domain() {
.editable.LW-avf {
font-family: Monaco, monospace !important;
font-size: 75% !important;
}
}
@-moz-document domain(localize.mozilla.org) {
.translation-text,
.translate-translation .translation {
font-family: Monaco, monospace;
}
}
@-moz-document domain(news.khan.co.kr) {
iframe,
#adbox,
#FloatLayer1,
.ad_top,
.wing_todaynews,
#ad_banner,
.ad_movFocus,
#banner_view_b,
.ad_two_top,
#scrollDiv,
div[class^=banner] {
display: none !important;
}
}
@-moz-document domain(pressian.com) {
#about_scroll_ad,
#fx_ad,
#newsBODY > div[style="float:right;margin-left:10px;"]:first-child,
#btwColumn,
#subColumn2,
#google_sky_ad {
display: none !important;
}
}
@-moz-document domain(hani.co.kr) {
#left_wing,
#right_wing,
#scrollDiv,
#ad_box01,
#ad_box02,
#laAdArea,
#realclick_view,
#aswift_0_expand,
#ad_kisa_t01,
#foot-fix,
iframe {
display: none !important;
}
}
@-moz-document domain(seoul.co.kr) {
.hed_ad,
#sbaAboutDiv,
#eMartDiv,
.atic_banner,
#hnsIframe,
#InbnetIconAdFrame,
.aside,
.today,
.hotphoto,
[name=edailynews] {
display: none !important;
}
}
@-moz-document domain(dt.co.kr) {
#top_ad,
#soeaFrame_,
#soeaFrame2_,
#left_skyWingBanner,
#right_skyWingBanner,
#dt_banner_layout {
display: none !important;
}
}
@-moz-document domain(sisainlive.com) {
#articleBody table[width="320"],
ins.adsbygoogle,
#iwm_ti_wrap,
#scrollDiv,
#ad_scrollBanner2,
#scroll2_m,
#iwm_ba_x25,
#iwm_float_wrapper {
display: none !important;
}
}
@-moz-document domain(chosun.com) {
[class^="art_ad_"],
iframe,
#iwm_float_wrapper {
display: none !important;
}
}
@-moz-document domain(nocutnews.co.kr) {
[class^="ad_"],
iframe,
#realclick_view_float,
.btn_todaynewsgo,
#scrollDiv,
#ShapeLayer1 {
display: none !important;
}
}
@-moz-document domain(zdnet.co.kr) {
.top_ad,
#scrollDiv,
#divMenu,
#divMenu2,
#main_right_Floating_banner,
#zdnet_banner_layout,
.right_bn1,
.right_bn2,
.right_bn3,
.right_bn4,
.ad,
#openmatch_ad {
display: none !important;
}
}
@-moz-document domain(asiatoday.co.kr) {
iframe,
#wp_adbn_root,
body > div[style="width:100%;margin:0 auto"], /*"*/
#scrolling_banner,
#scrolling_left_banner,
.aside_google_304,
#scrollDiv,
#wingBnLeft,
#wingBnRight,
#enliple_ad,
div[class^="banner_1024_1024_"],
.view_ad_658,
#tmpILSA_Container,
#iwm_float_wrapper,
#section_top {
display: none !important;
}
}
@-moz-document domain(etnews.com) {
iframe,
#wingBanner,
#winxplayer,
#FloatLayer1,
#FloatLayer2,
#scrollDiv,
.top_ad_art,
.naver_btn {
display: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment