{"R_VK":{"useimg":1,"link":"^(?:m\\.)?vk\\.com/photo([\\d\\-_]+)(?:\\?(tag)=(\\d+))?.*","url":": 'vk.com/al_photos.php :list=' + ($[3] ? $[2]+$[3]:((this.node.parentNode.getAttribute('onclick')+'').match(/wall-[\\d_]+/)||'')+'')+'&act=show&al=1&photo='+$[1]","res":":\nvar m = /[\\-\\d_]+/, img, ret = null, cache = {'_arr': []}, i, pid = $.url[1].substr($.url[1].lastIndexOf('=') + 1), x = JSON.parse($._.slice($._.indexOf('{'))).payload[1][3]\nfor (i in x) {\n ret = x[i].w_src ? ['#' + x[i].w_src] : [];\n ret.push(x[i].z_src || x[i].y_src || x[i].x_src);\n if (x[i].id == pid) { img = [[ret]] }\n else { cache[x[i].id] = ret; cache._arr.push('a[href^=\"/photo'+x[i].id+'\"]') }\n}\ncache._arr.length && [].forEach.call(document.body.querySelectorAll(cache._arr.join(',')), function(node) {\nvar x = cache[node.pathname.match(m)[0]];\nif (!node.IMGS_c) {\n node.IMGS_c_resolved = x;\n node.firstElementChild && (node.firstElementChild.IMGS_c_resolved = x);\n}\n})\nreturn img\n","img":"^cs\\d+|pp|sun[\\-0-9]+\\.(?:userapi\\.com|vk\\.me)\\/(c\\d+\\/*[uv]\\d+\\/.+\\/|.+\\/).+","to":":\nvar y, x = this.node,p=x&&x.parentNode;\nif (x.dataset.src_big) x = x.dataset.src_big.split('|')[0];\nelse if (x) {\n if (p && p.href && x.classList.contains('page_doc_photo')) {\n x = p.href + '&wnd=1';\n }\n else if ((y=x.getAttribute('onclick')) && y.indexOf('showPhoto(')>0) {\n x = JSON.parse(y.match(/(\\{.+\\})/)[0]).temp;\n x=(x.w ? '#' + x.w + '\\n' : '') + (x.z || x.y || x.x);\n }\n else if ((y=p.getAttribute('onclick')) && y.indexOf('showPhoto(')>0) {\n x = JSON.parse(y.match(/(\\{.+\\})/)[0]).temp;\n x=(x.w ? '#' + x.w + '\\n' : '') + (x.z || x.y || x.x);\n }\n}\nreturn x;","note":"by Baton34V\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=1100#16"}} |