Viewing just one div from an html page

1

1

I am speaking from the perspective of the end-user. Suppose I am visiting a website, which has a log divs. Most of them are displaying ads, menus, etc. but one of them is displaying the main content of the page.

Is there a way, in which I the user, using my browser, or some other tools such as Firebug etc, can view just that one div?

Saad Rehman Shah

Posted 2012-04-18T11:22:37.017

Reputation: 371

Answers

1

I believe you could use Greasemonkey to write a script for that particular website, essentially modifying the HTML on the fly. This seems to be similar example.

erikxiv

Posted 2012-04-18T11:22:37.017

Reputation: 1 804

1

To add on to @erikxiv's suggestion to use GreaseMonkey and JavaScript, I sought out a specific solution to your example. I asked the community over at StackOverflow for some help and jfriend00's answer works great: Set `display: none` recursively except for within a specific element

iglvzx

Posted 2012-04-18T11:22:37.017

Reputation: 21 611