Summary
Typing "simpleanal" into browser bar without autocomplete when DuckDuckGo is default search engine has ended three careers. Let's make it four... wait, no, let me open this issue.
Current Behavior
Brain: "Type simpleanal into browser bar for analytics"
Fingers: "Got it boss"
Enter key: "LEEEEROY JENKINS"
DuckDuckGo: "Showing results for... oh my"
IT Security: "We need to talk about your search history"
Expected Behavior
- Navigate to Simple Analytics
- Maintain employment
- Look spouse in the eye at dinner
Root Cause Analysis
- "Simple Analytics" is too many characters
- I am lazy
- The internet is a dark place
- Tab key is apparently optional (it's not)
Reproduction Steps
- Open browser during important presentation
- Confidently type "simpleanal"
- Hit Enter with the force of someone who knows where they're going
- Watch career flash before eyes
- Alt+F4
- Update LinkedIn
Proposed Solutions
Option A: The Hosts File
# /etc/hosts (or C:\Windows\System32\drivers\etc\hosts)
127.0.0.1 simpleanal
# Run a tiny redirect server
sudo node -e "require('http').createServer((req,res)=>{
res.writeHead(301,{'Location':'https://simpleanalytics.com'});
res.end();
}).listen(80)"
Option B: The Nuclear Option
// If user types "simpleanal"
if (query === "simpleanal") {
alert("NO NO NO NO NO");
window.location = "https://simpleanalytics.com";
browser.history.delete(everything);
user.memory.wipe(last_30_seconds);
}
Option C: The Gaslight
// Redirect so fast they question reality
if (query === "simpleanal") {
window.location = "analytics.dashboard";
console.log("Nothing happened. You saw nothing.");
document.title = "You were always looking at analytics";
}
Definition of Done
Test Cases
- ✅ Works when boss is watching
- ✅ Works during screen share
- ✅ Works at family computer