To disable the HTTP Referrer (Referer) header in Firefox open about:config and set network.http.sendRefererHeader to zero.
Category Archives: Web
Everything you need (and don’t need) to know about PHP’s type system
I read Everything you need (and don’t need) to know about PHP’s type system, it was interesting. My favourite quote was at the end:
“I believe php’s type system is incredibly rich and carries many innovative and legacy features and they all make much sense when you look at the history of the language development.”
How to Automatically Clear Browsing History in Chrome on Exit
Today I read How to Automatically Clear Browsing History in Chrome on Exit and learned how to clear cookies etc when closing the Chromium web browser. Basically it’s Settings -> Privacy and security -> Site settings -> Cookies and site data -> Clear cookies and site data when you quit Chromium.
Open current tab duplicate in new window in Firefox
So I read about Firefox shortcuts and I figured to open the current tab in a new window:
- Ctrl+L
- Shift+Enter
Axiomatic CSS and Lobotomized Owls
Today I learned about the “Lobotomized Owl” CSS selector over on Axiomatic CSS and Lobotomized Owls.
Things I Wish I’d Known About CSS
Today I read Things I Wish I’d Known About CSS. Good read about how some fundamental CSS things work.
Ten modern layouts in one line of CSS
Today I read Ten modern layouts in one line of CSS about advanced contemporary CSS features.
How to Customize Firefox’s User Interface With userChrome.css
Today I read How to Customize Firefox’s User Interface With userChrome.css. You may need to enable with e.g. Firefox 69: userChrome.css and userContent.css disabled by default. If you change userContent.css you need to open your page in a new tab to force an update. I would guess that if you change userChrome.css you will need to restart Firefox (I don’t know I’ve only been using userContent.css).
I should be clear: there are two files: userChrome.css (which affects Firefox features like toolbars and tabs etc) and userContent.css (which affects web pages loaded in Firefox).
I’ve been using userContent.css to fixup CSS on various websites. You can limit your changes to a particular domain in this way:
/* 2020-07-01 jj5 - SEE: https://exploringjs.com/impatient-js/toc.html */
@-moz-document domain(exploringjs.com) {
a:visited { color: purple !important; }
}
Lighthouse
I might be a little behind the times here but I learned about Lighthouse today. It’s from Google, which is regrettable, but I might check it out some time.
PHP Operator Precedence
Today I had cause to read about Operator Precedence in PHP. I think I will consider availing myself of the ‘and’ and ‘or’ keywords in future, I haven’t used them myself, although I have seen them before.