javascript - Show just particular parts of website - select via CSS? -


what easiest method display specific elements on website? example, on news site headlines , nothing else.

i'd select elements via css should displayed.
tried use :not pseudoclass:

:not(.myclass) { display: none; } 

but obviously, parents of .myclass-elements aren't displayed , aren't them. know possibility achieve this? doesn't have css-only, javascript possible too.
web-app great.

i'd able filter sites visit, apply user-stylesheet.

you can load page jquery , select elements want...

$("body").load("path/to/page.html div.headline"); 

the above load <div class="headline"> elements body of document.

note: of course have keep same origin policy in mind.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -