By Zuo
—
Last update
Apr 6, 2009
—
Installed
300 times.
// ==UserScript==
// @name Gametrailers.com - No age verification
// @namespace ...
// @description Removes age-verification from all the player(s), yes including the Flash one
// @include http://www.gametrailers.com/player/*
// ==/UserScript==
// Array with div-containers used to hold the player
var array_divs = new Array("HDMovie","SDMovie","QuictimeSDMovie","QuicktimeHDMovie","WindowsMediaPlayer");
// Do once DOM is loaded
(function(){
if(unsafeWindow.myFlash) {
var is_flv = false;
if(unsafeWindow.document.getElementById("HDMovie")) {
is_flv = true;
} else if(unsafeWindow.document.getElementById("SDMovie")) {
is_flv = true;
}
if(is_flv) {
unsafeWindow.myFlash.addVariable("agegatebool","0");
//unsafeWindow.myFlash.addVariable("adurl","");
unsafeWindow.myFlash.addParam("allowFullScreen","true");
for(k in array_divs) {
if(unsafeWindow.document.getElementById(array_divs[k])) {
unsafeWindow.myFlash.write(array_divs[k]);
}
}
}
}
if(unsafeWindow.NeoPlayer) {
for(k in array_divs) {
if(unsafeWindow.document.getElementById(array_divs[k])) {
unsafeWindow.NeoPlayer.ageCheck(1, 1, 1989, array_divs[k]);
}
}
}
if(unsafeWindow.ageCookie) {
unsafeWindow.ageCookie();
}
})();