Giter Club home page Giter Club logo

cowtab's Introduction

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

cowtab's People

Contributors

metarmask avatar rungulus avatar tanishq-dubey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cowtab's Issues

Random Cows

Hi!

Would it be possible to randomise the cow type on each run?
Would be cool to have a different one every time the page is shown instead of having to select a fixed one in the settings

New version not in Web Store?

I don't know if it's intentional or not, but the new version with the fixed cows is not present in the Web Store listing, which hasn't been updated since 2018.

Figured I'd open an issue for this, since the release notes said it was going to the web store but it isn't there. I'm running the unpacked version currently, but that can't sync in Edge or Chrome :-( .

Latest Chrome version renders screen black

Hello,
Upon updating to latest Chrome addon version (1.03) the cowtab screen is rendered black. There is also the following error in console.

private.js:38 Uncaught (in promise) TypeError: Illegal invocation: Function must be called on an object of type StorageArea
at Promise (private.js:38)
at new Promise ()
at Proxy.args (private.js:37)
at getOptions (newtab.js:14)

Chrome version: 71.0.3578.98 (Official Build) (64-bit)

Firefox Compatibility

Looks like this is compatible with the new version of Firefox with WebExtension support so you could submit it to the FF addon market as well

The cow is not displayed on chrome version Version 92.0.4515.159

error shown in inspect element:

Uncaught (in promise) TypeError: Illegal invocation: Function must be called on an object of type StorageArea
    at private.js:38
    at new Promise (<anonymous>)
    at Proxy.<anonymous> (private.js:37)
    at getOptions (newtab.js:14)
    at async newtab.js:22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.