/** Amazon Auto Links v3.8.8b01 by miunosoft (Michael Uno) Generates links of Amazon products just coming out today. You just pick categories and they appear even in JavaScript disabled browsers. Copyright (c) 2013-2018, Michael Uno; Licensed under GPL v2 or later */ (function($){$(document).ready(function(){$('input[data-switch][type="radio"]').change(function(){var _sSubjectSelector=this.value,_sSwitchSelector=$(this).attr('data-switch');if($(this).is(':checked')){$(_sSwitchSelector).find('input[data-property], select[data-property]').each(function(){$(this).attr('disabled','disabled')});$(_sSubjectSelector).find('input[data-property], select[data-property]').each(function(){$(this).removeAttr('disabled')})}});setInterval(function(){$('#post').find('input[data-property][type="text"], input[data-property][type="number"], select[data-property]').each(function(){if(!$(this).is("[data-new]")){$(this).attr("data-old","");$(this).attr("data-new",$(this).val());return true}else{$(this).attr("data-old",$(this).attr("data-new"));$(this).attr("data-new",$(this).val())};if($(this).attr("data-old")===$(this).attr("data-new"))return true;oPreviewButton.updateStyles()});$('#post').find('input[data-property][type="radio"], input[data-switch][type="radio"]').each(function(){if(!$(this).is("[data-new]")){$(this).attr("data-new",$(this).is(':checked'));$(this).attr("data-old",$(this).is(':checked'));return true}else{$(this).attr("data-old",$(this).attr("data-new"));$(this).attr("data-new",$(this).is(':checked'))};if($(this).attr("data-old")===$(this).attr("data-new"))return true;oPreviewButton.updateStyles()})},500);$('input[data-switch][type="radio"]:checked').trigger("change")})}(jQuery))