虎撲,豆瓣等用css發屏蔽廣告代碼

使用方法

  1. 用css中的display:none方法;
  2. 用chrome瀏覽器,右鍵審查,得到css路徑,在按右鍵,審查,copy-selector;
  3. 使用stylish等插件;

虎撲css

.hp-threeNav,
body > div.hp-header.hp-header-A,
#tabs_header,
#sort,
body > div.hp-header.hp-header-B,
body > div.bottom_tools,
div > div.floor_box > table > tbody > tr > td > small {
    display: none !important
}

豆瓣css

.group-board,
#group-info,
#db-nav-group{
    display: none !important;
}
#content > div.grid-16-8.clearfix > div.aside > div:nth-child(2) {
    display: none !important;
}

#content > div.grid-16-8.clearfix > div.aside > div.mod.side-nav {
    display: none !important;
}

網頁字體修改

* {
    font-family: '華文黑體' !important;
    font-size: 15px !important;
}

全局文字字體陰影渲染css

/* 2019.09更新 */

/*字體陰影*/
* {
	text-shadow: 0.0em 0.0em 0.13em #37F !important;
	font-family: Optima, '華文黑體' !important;
	background-color: rgba(0, 0, 0, 0);
	-webkit-transition: all 0.4s ease;
	font-weight: 300;
	line-height: 1.625;
	font-size: 16px !important;
}

/*去除連接下劃線*/
a {
	text-decoration: none !important
}

/*淡藍色文字效果*/
a {
	-webkit-transition: all 0.3s ease-out;
}

a:hover {
	color: rgb(224, 7, 43)  !important;
	text-shadow: -5px 3px 18px #39F !important;
	-webkit-transition: all 0.3s ease-out;
}
 


/* 2018.09更新.

*{
	text-shadow:0.0em 0.0em 0.13em #37F !important;
	font-family:Optima, '華文黑體' !important;
}

body{
	background-color: #F7F7F7;
	-webkit-font-smoothing: subpixel-antialiased !important;}

a{
	text-decoration:none !important}

a{
	-webkit-transition: all 0.3s ease-out;}
a:hover{
	color: #39F  !important;
	text-shadow:-5px 3px 18px #39F !important;
	-webkit-transition: all 0.3s ease-out;}
*::-webkit-selection {
	background: #333333 !important; 
	color: #00FF00 !important; }

 */
相關文章
相關標籤/搜索