Discussions » Creation Requests

Bypass cookiewall tubantia.nl

§
Posted: 10-03-2017

Bypass cookiewall tubantia.nl

Is it possible to create a greasemonkey script that disables a cookieswall event without having to accept the cookie window after cleaning cookies?

www.tubantia.nl

woxxomMod
§
Posted: 10-03-2017
// ==UserScript==
// @name    tubantia cookiewall
// @match   *://*.tubantia.nl/*
// @run-at  document-start
// ==/UserScript==

if (document.cookie.indexOf('nl_cookiewall_version') < 0) {
    (document.head || document.documentElement).insertAdjacentHTML('beforeend', '<style>* {display:none}</style>');
    document.cookie = 'nl_cookiewall_version=1; domain=tubantia.nl; path=/';
    document.cookie = 'nl_cookiewall_version=1; domain=www.tubantia.nl; path=/';
    location.reload();
}
§
Posted: 10-03-2017

Thank you, it works like a charm

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.

长期地址
遇到问题?请前往 GitHub 提 Issues。