bitchify

Bitchify your panty pants

Usage no npm install needed!

<script type="module">
  import bitchify from 'https://cdn.skypack.dev/bitchify';
</script>

README

Bitchify

Build npm install size

Bitchify your panty pants. Just a lightweight dependency-free easter egg for every website, bitch!

https://schascha.github.io/bitchify/

Installation

Bitchify is available on npm:

npm i bitchify --save

Initialize

<script src="dist/js/bitchify.min.js"></script>
var bitchify = new Bitchify();

Configuration

elements: 'h1, h2, h3, h4, h5, h6, p',  // String: Selector
pattern: /[\t\n.!?]+$/,                 // RegExp|String: Replace pattern, e.g. /[^\w]+$/
replace: ', Bitch!',                    // String: Replacement
before: false,                          // Boolean: Insert before or after
active: false,                          // Boolean: Render on page load
hash: 'bitch',                          // String: Trigger bitchify via hashtag
keyword: 'bitch'                        // String: Trigger bitchify on keypress

Examples

Insert at the beginning

new Bitchify({
    pattern: /[^\w]+$/,
    replace: 'Bitch! ',
    before: true
}

Development

Project setup

npm install

Compiles for development

npm start

Compiles and minifies for production

npm run build

Test, lints and fixes files

npm test

Bitchify the world as Browser Bookmark

Create bowser bookmark and copy following code as URL:

javascript:if(typeof bitchify==='undefined'){var bitchify,s=document.createElement('script');s.src='https://schascha.github.io/bitchify/dist/js/bitchify.js';s.onload=function() {bitchify=new Bitchify().render();};document.body.appendChild(s);}else{bitchify.render();}

Bugs? 🐛

Please let me know: https://github.com/Schascha/bitchify/issues

Buy me a Coffee ☕

Support this project and others via PayPal. Thanks

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT

Copyright (c) 2019 Sascha Künstler