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('acceptHeros') == null) setCookie('acceptHeros', 'false', d);
- var acceptHeros = mAlert;
- mAlert = function(a, c, d, b) {
- acceptHeros(a, c, d, b);
- if (getCookie('acceptHeros') == 'true' && a.indexOf('przyzywa do siebie swoją drużynę') != -1) $('#a_ok').click();
- };
- g.loadQueue.push({
- fun: function() {
- $('<div id="checkboxheros">Automatyczne akceptowanie przywołania na herosa<br></div>').appendTo('#cfg_options').click(function() {
- if ($('#checkboxheros').attr('style') == 'background-position: 0px -22px') {
- $('#checkboxheros').attr('style', 'background-position: 0px 0px');
- setCookie('acceptHeros', 'false', d)
- } else {
- $('#checkboxheros').attr('style', 'background-position: 0px -22px');
- setCookie('acceptHeros', 'true', d)
- }
- });
- if (getCookie('acceptHeros') == 'true') $('#checkboxheros').attr('style', 'background-position: 0px -22px');
- else $('#checkboxheros').attr('style', 'background-position: 0px 0px');
- },
- data: ''
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement