Posts on Twitter:

When you make a request to with empty User-Agent header. I believe you should review your and politics with regard to web .

Read here: "A few months ago, Google announced changes were coming to improve privacy, security, and performance with regard to Chrome extensions. In particular, one change didn’t sit well with ad blocker develope…

Posts on Tumblr:

A Simple Capitalize Function For JavaScript

In Lodash, there is no way to capitalize every word in a sentence which is useful for formatting strings for titles and other user displayed UI elements. Firstly, there is a capitalize function, but it is only meant for one word:

// Test
console.log(_.capitalize('This string, ShouLD be ALL in title CASe'));
// This string, should be all in title case

There are a bunch of other tactics using different Lodash functions, but they all miss significant edge cases. Which is why I chose such a complex example from above. Instead, the most correct strategy is to simply loop through each word and capitalize them all:

const sentence = 'This string, ShouLD be ALL in title CASe';
const result = sentence.split(' ')
                 .map((word) => _.capitalize(word))
                 .join(' ');
// This String, Should Be All In Title Case

Note that (_.words)[] removes some punctiation which is why I used a split instead.

Github Location:

Firefox now lets me add extensions, but still messes with tumblr.  Using the post to tumblr bookmarklet is now also affected: scrolling down “too far” results in a “Do you want to leave this page?” pop up.  After posting, the window refreshes itself and reverts to its pre-post state.  I thought my new anti-script thingy was responsible, but it’s still happening despite removing the extension & restarting the machine.  @_@  What’s even weirder is the page I’m using to post this text [*and* the page it took me to for editing this post] is unaffected  O_o