Arsors.Cookie

Customizable cookie plugin with JavaScript blocker

Version 0.1.0

Clone Repository

You can install Arsors.Cookie via NPM or GitHub. Simply copy the commandline and quickly add the plugin to your project. I am happy about pull requests, criticism or praise.

Copy, paste, configurate

npm i arsorscookie
git clone https://github.com/arsors/arsorscookie.git

Customizable HTML & CSS

You have full control over the html markup and can change and expand it as you like. You can also create your own template variables and store them in the markup to work nested. The included minimalistic css makes it easy for you to integrate the right look for your cookie message.

Customizable HTML & CSS
JavaScript & iFrame Blocker

JavaScript & iFrame Blocker

Add your JavaScript files to certain cookies and have them managed by Arsors.Cookie. Depending on your privacy policy, these JavaScript files will be blocked when you first visit the site, or they will simply be turned off afterwards. But not only JavaScript can be managed this way, iFrames such as from YouTube, Vimeo, Google Maps or many more can be blocked.

Modular system

With the modular system you can manage as many cookies as you like. The user can accept or refuse each cookie separately. In addition, you can add JavaScript files or iFrames to each cookie that shall be blocked. To prevent confusion inbetween a flood of cookies and settings each module can be provided with its own "cookie accept message".

Modular system
Opt-In, Opt-Out & Info Modus

Opt-In, Opt-Out & Info Modus

Arsors.Cookie comes with three different types of privacy policies: You can use Opt-In to block JavaScript files, iFrames or other functionalities by default and authorize the user to accept single cookies afterwards. Opt-Out loads all functions during the first visit. Afterwards the user is able to deny single cookies. Info only informs the user that cookies are being used.

Configuration by JavaScript Object

To become master of all the functionalities you have to configure the Arsors.Cookie plugin with a JavaScript Object. At this point it is important to mention that this plugin does not have a integrated multilingualism. But it is still possible. Depending on your needs, different JavaScript objects can be initialized to do exactly that for you. Be creative! There are lots of possibilities.

Configuration by JavaScript Object
Compatibility

Compatibility

Arsors.Cookie was developed native in JavaScript, so there are no dependencies. Remember that local files can not set cookies. The browser needs to detect a website to do so. The plugin has been tested in: Google Chrome 33, FireFox 26, Internet Explorer 9, Microsoft Edge 12, Safari 9 and Opera 15. It also runs on the following mobile browsers: Google Chrome 33, FireFox 26, Microsoft Edge 12, Safari 7 and Opera 6.