epicgames.com Store Age Check Bypass

Sets cookies to fake passed age check (1970-01-01)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        epicgames.com Store Age Check Bypass
// @match       https://store.epicgames.com/*/p/*
// @match	https://store.epicgames.com/*/bundles/*
// @grant       none
// @version     0.0.2
// @icon        https://icons.duckduckgo.com/ip2/epicgames.com.ico
// @description Sets cookies to fake passed age check (1970-01-01)
// @license     Unlicense
// @run-at      document-start
// @namespace https://greasyfork.org/users/1257939
// ==/UserScript==

function getCookie(name) {
	// Source: https://stackoverflow.com/a/24103596
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}

if (!getCookie("HasAcceptedAgeGates")) {
	document.cookie = "egs_age_gate_dob=1970-0-1; path=/";
	document.cookie = "HasAcceptedAgeGates=USK%3A18; path=/";
	document.location = document.location;
}