I installed "Greasemonkey" to remove part of HTML code for specific site.
i found "jQuery" code for removing
function removeByClass(className) {
$("."+className).remove();
}
I tried to replace the "ClassName" with "news_ticker" but it did not worked out.
I do not have much information in java language
the HTML section code that I want to remove as below
<div class="news_ticker">
<div class="title"><a title="Title";</a></div>
<div class="ticker">
<div class="wrapper">
<div class="ticker_feeds">
<span class="aa_icon">"headline"</span>
<span class="aa_icon">"headline"</span>
<span class="aa_icon">"headline"</span>
<span class="aa_icon">"headline"</span>
<span class="aa_icon">"headline"</span>
</div>
</div>
<div class="controls"><a class="prev" title=""></a><a class="pause" title=""></a><a class="next" title=""></a></div>
</div>
</div>
<style>
.static_banner01 {
clear: both;
overflow: hidden;
padding-bottom: 10px;
position: relative;
}
.banners{
overflow: hidden;
width: 190px;
float: right;
}
.m15{
margin-left:14px;
}
.m18{
margin-left:20px;
}
.m10{
margin-left:10px;
}
.w155,
.w155 a{
width:155px !important;
}
.banners a{
width: 190px;
height: 80px;
}
.banners.last{
margin-left:0;
}
</style>
1st issue of removing headline has been solve by below code thanks to V P
now the site play video automatically, so i need to remove the video from main page. below code is for video section:
I tried below codes:
did not work
did not work
when there is no video the site insert image, but this line remove video and image together.
after some test find the solution (just remove the videos)
I hope this help others who search for similar "userscript" for "Greasemonkey"