Steam Age confirmer

Confirms the age on steam pages automatically

This script is marked as "expired"
Expired scripts may still work but they will not be fixed once they break.
This script is marked as "external"
This script was commisioned by someone else, and I will not check if it works. If it breaks, contact me
Click here to install Browse More Scripts
// ==UserScript==
// @name         Steam Age confirmer
// @namespace    97f65898214fd252ae17bc73b5677158be4ee11a
// @version      0.3
// @description  Confirms the age on steam pages automatically
// @author       /r/AyrA_ch
// @match        https://steamcommunity.com/*
// @grant        none
// @external     true
// @expired      true
// ==/UserScript==

// ==Changelog==
// 0.1 Initial version
// 0.2 Added second method for age-check bypass
// 0.3 Adding loop for easier expansion

(function (q) {
	'use strict';
	//Add possible elements to click below
	var queries = [
		"#age_gate_btn_continue",
		"#app_agegate a[onclick]"
	];
	for (var i = 0; i < queries.length; i++) {
		var e = q(queries[i]);
		if (e) {
			//Only click the first found Element
			return e.click();
		}
	}
})(document.querySelector.bind(document));

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 44.192.54.67