sheep.js demo page

sheep.js is the first version of the little sheep watermark in the bottom right corner of the page. Try right-clicking or long pressing it! It was used for almost all web pages created from the beginning of this website (2016-09-13) to 2017-11-30, when sheep2.js was created.

In addition to creating a universal watermark, sheep.js provides a variety of features and utility functions that were intended to be usable by my web pages—in a way, it's the predecessor to Reform.

Little sheep features

At some point, I was against ad blockers for no good reason, so there was also code to detect ad block, and redirect ad block users to a Google image search for "trypophobia." A Scratcher threatened to report me because of it, so I instead made it subtly blur the web page until 2019, when ad block detection code was removed "temporarily."

Context menu features

Right-clicking or long-pressing on the little sheep opens a context menu with various options:

Style documentation

sheep.css contains a CSS reset:

The little sheep is a custom <sheepmenu> element, so it can be hidden by adding:

sheepmenu {
  display: none;
}

SHEEP API documentation

Only sheep.js needs to be added to the web page; the script loads sheep.css. The script tag should be inside the <body> tag so that document.body is available when it runs.

Because I used to develop my website locally by opening HTML files directly in the browser (under the file:// protocol), I had to use relative paths (e.g. ../../sheep.js) instead of an absolute path like /sheep.js.

<script src="../../sheep.js"></script>

Create a notification