You can avoid Google doing a barrel roll by encapsulating your query in quotation marks: "do a barrel roll" will not, ironically enough, do a barrel roll.
This should work for all easter egg queries: quotation marks signal to Google that it should search for the literal string instead of interpreting it to mean something else.
Compare:
This of course doesn't work when Google Instant is turned on, as Google will submit the search query before you can finish encapsulating the query in quotation marks. Unfortunately, this is a limitation/"feature" of Google Instant: to prevent Google from submitting the query before you're finished typing it, you'd have to disable Google Instant.
Beyond this, it's possible to disable certain types of Easter eggs, provided you know the nature of the Easter egg beforehand. You could, for instance, prevent the do a barrel roll Easter egg by adding the following snippet to your browser's custom stylesheet:
body {
-webkit-animation-name: none;
-moz-animation-name: none;
}
But since this would affect every <body>
tag on every webpage, it's not ideal either.
You could get around this by using Stylish, which allows you to specify site-specific custom stylesheets ("userstyles"). Creating a userstyle with the following should work:
@-moz-document: domain("google.com")
@-webkit-document: domain("google.com")
@document: domain("google.com")
body {
-webkit-animation-name: none;
-moz-animation-name: none;
}
Of course, while this would allow you to disable this specific Easter egg, Google can and most likely will come up with new ones that do unexpected things in the name of being quirky. Without disabling JavaScript or Google Instant, it'd be nigh impossible to prevent them from happening at least once.
Best Answer
There is currently no way to do this. However, using search history to keep track of what websites you visit is like installing CCTV in your bedroom to keep track of your socks. Your browser is likely equipped with a history function and cloud sync to make sure you don't lose it.