{"id":23722,"date":"2020-05-11T10:20:21","date_gmt":"2020-05-11T09:20:21","guid":{"rendered":"https:\/\/jurnsearch.wordpress.com\/?p=23722"},"modified":"2020-05-11T10:20:21","modified_gmt":"2020-05-11T09:20:21","slug":"css-and-desist","status":"publish","type":"post","link":"https:\/\/jurn.link\/jurnsearch\/index.php\/2020\/05\/11\/css-and-desist\/","title":{"rendered":"CSS and desist"},"content":{"rendered":"<p>Ever wonder what a Web page would look like if <em>just<\/em> the plain HTML were shown, as if it were 1996 again? Ah, but <em>which<\/em> HTML? There are actually two forms of HTML that reach your browser, and there can be quite a disparity between these two types.<\/p>\n<p>The first is what you see after the raw HTML has been pummelled about by CSS and javascript and the browser&#8217;s interpretation.  This is often referred to as the &#8216;DOM&#8217; HTML.  This code is what you see and navigate through if you &#8216;Inspect element&#8217; in your browser, or if you block an element with uBlock&#8217;s Element Picker tool.<\/p>\n<p>The second type is the HTML code that gets sent to the browser in the first place, and that original is kept pristine and effectively &#8216;under&#8217; the Web page. It can be seen via: right-click on page \/ &#8216;View source&#8217;.  This source can then be selected and copied with a <em>Ctrl + A \/ Ctrl + C<\/em> keyboard command. Or it can be saved out when you &#8216;Save page as&#8230;&#8217; \/ &#8216;Save as HTML only&#8217;, and from there you can re-open the saved page in the browser. Some remote CSS, javascript and images may still be called, even then.<\/p>\n<p>A quicker way to &#8216;see&#8217; this original without its CSS and other &#8216;remote-code&#8217; flibbertigibbets is to install the add-on <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/disable-html\/lfhjgihpknekohffabeddfkmoiklonhm\">disable-HTML<\/a> in your browser&#8230; <\/p>\n<p><a href=\"https:\/\/jurn.link\/jurnsearch\/2020\/05\/dis-html.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jurn.link\/jurnsearch\/2020\/05\/dis-html.jpg\" alt=\"\" width=\"408\" height=\"329\" class=\"alignnone size-full wp-image-23723\" \/><\/a><\/p>\n<p>The addon is quite simple to use, and though old still works fine.  It was somewhat mis-named, as it can robustly block everything <em>except<\/em> the HTML of the actual &#8216;page source&#8217;. With CSS and javascript blocked, it appears to be blocking the DOM version of the HTML from emerging from the page source. So what you see displayed, on page re-load, is effectively the page source. As such it can be quite handy for the removal of some types of especially tough and obstreperous CSS-and-javascript -driven overlays, in a situation where you don&#8217;t much care about the fancy wrapping and just want the words in a readable and\/or copy-able form.  Such as on the vile overlays of the unherd.com site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wonder what a Web page would look like if just the plain HTML were shown, as if it were &hellip;<\/p>\n<p><a href=\"https:\/\/jurn.link\/jurnsearch\/index.php\/2020\/05\/11\/css-and-desist\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-23722","post","type-post","status-publish","format-standard","hentry","category-jurn-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/23722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/comments?post=23722"}],"version-history":[{"count":0,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/23722\/revisions"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/media?parent=23722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/categories?post=23722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/tags?post=23722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}