{"id":66,"date":"2009-10-22T09:32:03","date_gmt":"2009-10-22T14:32:03","guid":{"rendered":"http:\/\/blog.alanporter.com\/2009-10-22\/surgical-web-page-editing-with-stylish"},"modified":"2009-10-22T09:32:03","modified_gmt":"2009-10-22T14:32:03","slug":"surgical-web-page-editing-with-stylish","status":"publish","type":"post","link":"https:\/\/alanporter.com\/blog\/2009\/10\/22\/surgical-web-page-editing-with-stylish\/","title":{"rendered":"Surgical web page editing with &#8220;stylish&#8221;"},"content":{"rendered":"<p>Have you noticed that some web sites have ads that are somewhat&#8230; <em>unpredictable?<\/em>  Facebook is a good example of this.  The ads that appear on the right can sometimes contain trashy-looking content.  I&#8217;d like to hide them, if I could.<\/p>\n<p>I found a Firefox plugin that does a good job of slicing out selected bits of content.  It&#8217;s called &#8220;<a href=\"http:\/\/userstyles.org\/stylish\/\">stylish<\/a>&#8220;.<\/p>\n<p>Just install the plugin, and then set up a script that intercepts the stylesheet for a particular site and does a little on-the-fly modification.  The script I use for Facebook looks like this:<\/p>\n<pre>\n@namespace url(http:\/\/www.w3.org\/1999\/xhtml);\n@-moz-document domain(\"facebook.com\") {\n   .emu_ad, .UIStandardFrame_SidebarAds, #home_sponsor {\n      display: none !important;\n   }\n}<\/pre>\n<p>I don&#8217;t claim to fully understand the script, but I do know that it looks for a specific block in the Facebook HTML and style sheet, and it sets the style for the sidebar ad box to &#8220;display: none&#8221;.  That makes it disappear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you noticed that some web sites have ads that are somewhat&#8230; unpredictable? Facebook is a good example of this. The ads that appear on the right can sometimes contain trashy-looking content. I&#8217;d like to hide them, if I could. I found a Firefox plugin that does a good job of slicing out selected bits [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-software","category-tips-tricks","count-0","even alt","author-alan","last"],"_links":{"self":[{"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alanporter.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}