Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.49 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.49 KB

Cow Tab

This is a quick and dirty port of this extension to Firefox

A simple new tab page that replicates the classic fortune | cowsay command.

It supports all kinds of quote lengths and types! Please make a PR if you see bugs, I'm not good at JS or web dev.

Get it here: https://addons.mozilla.org/en-US/firefox/addon/cowtab/

To add a cow:

  1. Place your .cow file in the "cows" directory

  2. Add the filename to "cows/index.txt"

  3. (Optional) Add a translation to "_locales/en/messages.json":

    ,
    "option_cowType_filenamecow": {
        "message": "Cow name"
    }
    

So if I wanted to add abc-123.cow I would copy the file to the "cows" directory, add its filename to "cows/index.txt" and add

,
"option_cowType_abc123cow": {
	"message": "ABC 123"
}

at the end of the last translation in "_locales/en/messages.json".

The cow will then be selectable in the options page.

Thanks to:

alex-chew/landing (https://github.com/alex-chew/landing) for helping me with the options page

paulkaefer/cowsay-files (https://github.com/paulkaefer/cowsay-files) for providing additional cow files

https://packages.debian.org/sid/cowsay for providing me with the original cows

Huge thanks to metarmask (https://github.com/metarmask) for a giant refactor and cleanup.

Very Short Fortunes

Very Long Fortunes

And Short Fortunes