Skip Steam Age Check

Skip the age check on the Steam website

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       		Skip Steam Age Check
// @name:de			Steam Altersprüfung überspringen
// @namespace  		https://greasyfork.org/users/928242
// @version    		1.0.1
// @description		Skip the age check on the Steam website
// @description:de	Überspringen der Altersprüfung auf der Steam-Website
// @author       	Kamikaze (https://github.com/Kamiikaze)
// @supportURL      https://github.com/Kamiikaze/Tampermonkey/issues
// @match        	https://store.steampowered.com/agecheck/*
// @icon         	https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @grant        	none
// @run-at       	document-ready
// @license      	MIT
// ==/UserScript==

// ==OpenUserJS==
// @author Kamikaze
// ==/OpenUserJS==

setInterval( () => {
	console.log("Trying to Skip Age check..")

	const yearSelectEl = document.getElementsByName("ageYear")[0]?.children

	if (yearSelectEl) {
		if (yearSelectEl.length < 0) return;
		// console.log(yearSelectEl.children)

		for (let i = 0; i < yearSelectEl.length; i++) {
			const option = yearSelectEl[i]
			option.removeAttribute('selected')

			if (option.value == '1999' ) {
				option.setAttribute('selected', true)
				ViewProductPage();
				console.log("Skipped!")
			}
		}
	} else {
		ViewProductPage();
		console.log("Skipped!")
	}
}, 1000)