Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var d = new Date(); d.setTime(d.getTime() + 3600000 * 24 * 30);
- if(getCookie('acceptRlg') == null) setCookie('acceptRlg','false',d);
- var acceptRlg = mAlert;
- mAlert = function(a,c,d,b){
- acceptRlg(a,c,d,b);
- if(getCookie('acceptRlg') == 'true' && a.indexOf('opuścisz grę') != -1) $('#a_ok').click();
- };
- g.loadQueue.push({fun: function () {
- $('<div id="checkboxrlg">Automatyczne wylogowywanie</div>').appendTo('#cfg_options').click(function(){
- if($('#checkboxrlg').attr('style') == 'background-position: 0px -22px'){
- $('#checkboxrlg').attr('style', 'background-position: 0px 0px');
- setCookie('acceptRlg','false',d)
- }else{
- $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
- setCookie('acceptRlg','true',d)
- }
- });
- if(getCookie('acceptRlg') == 'true') $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
- else $('#checkboxRlg').attr('style', 'background-position: 0px 0px');
- }, data: ''});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement