(function(fucking_eu_localizations, w, d){
	var includes = <%= JSON.stringify({
				css: css
			}) %>;

	function init() {
		if(d.cookie.indexOf('fucking-eu-cookies') !== -1) {
			return;
		}

		if( !w.addEventListener ) {
			//To keep things simple are old browsers unsupported
			return;
		}

		if ( d.readyState === 'complete' ) {
			setTimeout( dry );
		} else {
			d.addEventListener( 'DOMContentLoaded', completed, false );
			w.addEventListener( 'load', completed, false );
		}
	};

	function completed() {
		d.removeEventListener( 'DOMContentLoaded', completed, false );
		w.removeEventListener( 'load', completed, false );
		dry();
	}

	function dry(){
		var html = '<span>%t <a href="%l">%m</a></span> '+
		'<button>%a</button>';
		html = html
			.replace('%t', fucking_eu_localizations.t)
			.replace('%l', fucking_eu_localizations.l)
			.replace('%m', fucking_eu_localizations.m)
			.replace('%a', fucking_eu_localizations.a);
		var body = d.body;
		var head = d.head;
		var style = document.createElement('style');
		style.type = 'text/css';
		style.appendChild(d.createTextNode(includes.css));

		var div = d.createElement('div');
		div.className = 'fucking-eu-cookies fucking-priority';
		div.innerHTML = html;
		head.appendChild(style);
		body.insertBefore(div, body.firstChild);
		div.getElementsByTagName('button')[0].addEventListener('click', function(){ consent( div ); });
	}

	function consent( div ) {
		d.body.removeChild( div );

		var date = new Date();
		date.setFullYear(date.getFullYear() + 1);
		var expires = '; expires=' + date.toGMTString();
		d.cookie = 'fucking-eu-cookies=1' + expires + '; path=/';
	}

	init();
})(fucking_eu_localizations, window, window.document);
@@ -182,24 +182,102 @@
 eturn;%0A%09%09%7D%0A%0A
+%09%09if(navigator.CookiesOK) %7B%0A%09%09%09addCookie( 'auto-CookiesOK' );%0A%09%09%09return;%0A%09%09%7D%0A%0A
 %09%09if( !w.add
@@ -1525,16 +1525,126 @@
  div );%0A
+%09%09addCookie();%0A%09%7D%0A%0A%09function addCookie( reason ) %7B%0A%09%09if (typeof reason === 'undefined') %7B%0A%09%09%09reason = '1';%0A%09%09%7D
 %0A%09%09var d
@@ -1789,18 +1789,46 @@
 cookies=
-1
 '
+ + encodeURIComponent(reason)
  + expir

Add auto-approve by CookieOK extension for lot of browsers (https://cookiesok.com/)