MGS5 age check selection Keeper

Store MGS5 Ground Zero and METAL GEAR SOLID V: THE PHANTOM PAIN country and age selection locally in browser.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name MGS5 age check selection Keeper
// @namespace http://www.konami.jp/mgs5/ storeageselection/
// @version 0.1
// @author suPirman
// @description Store MGS5 Ground Zero and METAL GEAR SOLID V: THE PHANTOM PAIN country and age selection locally in browser.
// @include http://www.konami.jp/mgs5/*/certification.php5
// ==/UserScript==  

if(typeof(Storage) !== "undefined") {
    $('.easy-select-box').remove();
    $('#sel-country').val(localStorage.val_country).easySelectBox();
    $('#sel-month').val(localStorage.val_month).easySelectBox();
    $('#sel-day').val(localStorage.val_day).easySelectBox();
    $('#sel-year').val(localStorage.val_year).easySelectBox();
    $('input[type=image]').click(function(){
        localStorage.setItem("val_country", $('#sel-country').val());
        localStorage.setItem("val_month", $('#sel-month').val());
        localStorage.setItem("val_day", $('#sel-day').val());
        localStorage.setItem("val_year", $('#sel-year').val());
    });
} else {
    // Sorry! No Web Storage support..
}