Monday, October 17, 2011

how to hide any content on webpages

so you like a webpage and you don’t like some of its content? that’s normal. some people are just like me. lol

here’s what you can do.
  1. disable JavaScript – this only works if that content is generated with JavaScript OR
  2. dislike that webpage – this will decrease frequency of you seeing that content OR
  3. use this trick and AdBlock!
what’s AdBlock? AdBlock is one Extension made by a man and his wife. they’re super cool!

it’s a great Extension that blocks almost all ads you ever seen! I know, I’m using it. here’s how to get it.

after it gets installed, you can do some trick, it’s not really a trick, but it’s very cool. most cool thing’s a trick, right? haha

here’s what you can do (just an example):

go to kegilaanterlampau2.blogspot.com
image
I don’t like this counter so I’ll block it.

first, go to address bar and add this line : view-source:
image

find this : “aikkk ngintai ekk???

check for the hierarchy.
here it is:
<div class='widget Stats' id='Stats1'>
<h2>aikkk ngintai ekk???</h2>
<div class='widget-content'>
<div id='Stats1_content' style='display: none;'>
<span class='counter-wrapper graph-counter-wrapper' id='Stats1_totalCount'></span>
<div class='clear'></div>
check for the top most div tag.
it is:
<div class='widget Stats' id='Stats1'>
<h2>aikkk ngintai ekk???</h2>
<div class='widget-content'>
<div id='Stats1_content' style='display: none;'>
<span class='counter-wrapper graph-counter-wrapper' id='Stats1_totalCount'></span>
<div class='clear'></div>
now check the top most div class and id:
<div class='widget Stats' id='Stats1'>
<h2>aikkk ngintai ekk???</h2>
<div class='widget-content'>
<div id='Stats1_content' style='display: none;'>
<span class='counter-wrapper graph-counter-wrapper' id='Stats1_totalCount'></span>
<div class='clear'></div>
now go to AdBlock Options.
image
image

hit that Edit button!
image

now add this line : kegilaanterlampau2.blogspot.com##DIV[id="Stats1"][class="widget Stats"]
after saving, this is what happen. sweet:

original;
image

result;
image

THIS IS NOT A TUTORIAL ON HOW TO STEAL PEOPLE’S WORK!


thanks to Intan Sakinah for the blog, and, I’m very sorry for that [view-source:]

3 comments:

  1. haha, ni cara advance. so kalau nak yang simple tunggu "how to hide an embedded music player". 19 Oct pukul 6. :D
    Insha'Allah.

    ReplyDelete
  2. wah.... siap bg tarikh ngn masa.. terbaeek lah!

    ReplyDelete