Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Magnit.ru_Apteka+Cosmetic-s":{"link":"^(?:apteka|cosmetic)\\.magnit\\.ru/product/[\\w-]+","res":":\nreturn JSON.parse($._.match(/data-ssr=\"true\" id=\"__NUXT_DATA__\">(.+?)<\\//)?.[1]||'[]').filter(i=>/\\/rs:fit:1600/.test(i)).map(i=>[i])","note":"Imagus_fan\nhttps://www.reddit.com/r/imagus/comments/z0zyox/comment/lohqhfa\nOLD\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=640#7\n\n\nПРИМЕРЫ\nhttps://apteka.magnit.ru/search?q=антибиотики\nhttps://apteka.magnit.ru/catalog/vitaminy_i_bad/vitaminy_i_mineraly/\nhttps://cosmetic.magnit.ru/catalog/28475-dom\nhttps://cosmetic.magnit.ru/catalog/43435-dlya-muzhchin?shopCode=942311"},"Megafon.ru-s":{"link":"^\\w+\\.shop\\.megafon\\.ru/[\\w-]+/\\d+$","res":":\nconst f=this.find\n$=$._.match(/\\\\\"dop\\\\\":(\\[[^\\]]+\\])/)?.[1].replace(/\\\\\"/g,'\"')\n$=JSON.parse($)\nreturn $?.map(i=>[[f({src:Object.values(i.src)[0]}),i.src['600']||'']])||''","img":"^(\\w+\\.shop\\.megafon\\.ru/images/)\\d+/","to":"$1","note":"Baton34V\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=1020#16\nOLD\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2380#5\n\nПРИМЕРЫ\nhttps://shop.megafon.ru/mobile?si_sbmt=1&si_actions=&si_av=1&si_archVal=0&si_courier=1&si_salon=1&si_specs_2=2894"},"NewEgg-s":{"link":"^newegg\\.com/[\\w-]+/[\\w-]+","res":":\nreturn [...$._.matchAll(/(?:<img alt=\"([^\"]+)\"[^>]+?)?class=\"product-view-img-original\" src=\"([^\"]+)/g)].map(i=>[i[2],i[1]])","img":"^((?:images|c)\\d+\\.newegg(?:images)?\\.com(?:\\.cn)?/)(?:(is/image/newegg/[^?]+)\\?\\$.*|((?:NeweggImage/)?ProductImage)(?:CompressAll\\d*)?|(neweggpic\\d/neg/P)(?!800)\\d+)","to":":\nreturn $[1] + ($[2] ? $[2] + '?$S1280$': ($[4] ? $[4] + '800' : $[3] + 'CompressAll1280'));","note":"Baton34V\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=1480#4\n\nEXAMPLES\nhttps://www.newegg.com/Mice/SubCategory/ID-65\nhttps://www.newegg.com/todays-deals?cm_sp=Head_Navigation-_-Under_Search_Bar-_-Today%27s+Best+Deals&icid=720202\nhttps://www.newegg.com/p/pl?N=100167585%20600555891&cm_sp=TV-Video_2-_-LeftNav-_-OLED-TV"},"RBT.ru-s":{"link":"^(\\w+\\.)?rbt\\.ru/cat/[\\w-]+/[\\w-]+/[\\w-]+/","res":":\n$=$._.match(/id=\"__NEXT_DATA__\" type=\"application\\/json\">({.+?})<\\//);\n$=$&&JSON.parse($[1]).props?.pageProps?.initialState?.product?.card;\nconst id=$?.ids[0];\nreturn $?.entities?.[id]?.images?.map(i=>[i])||''\n\n","img":"^cdn\\.rbt\\.ru/images/gen/item_image/image/\\d+/\\d+/\\w+\\.jpg.*","to":":\nreturn this.node.parentNode.parentNode.getAttribute('data-img-gal');\n","note":"Baton34V\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=1460#10\n\nПРИМЕРЫ\nhttps://msk.rbt.ru/cat/kuhonnaya_tehnika/holodilniki/\nhttps://bataysk.rbt.ru/cat/gadzhety/fitnes_braslety/"},"VseInstrumenti.ru-s":{"link":"^(?:\\w+\\.)?(vseinstrumenti\\.ru)\\/product\\/","url":": (location.hostname.endsWith($[1])?'data:,':'')+$[0]","res":":\nif($.base[0]==='d'){\nconst x=new XMLHttpRequest();\nx.open('GET',$[0],false);\nx.send();\n$._=x.responseText;\n}\nconst res = [];\n\nconst data = /__NUXT__.+/.exec($._)[0];\nconst guid = /guid:\"(.+?)\"/.exec(data)[1];\nconst images = JSON.parse(/productImages:\\s*(\\[.+?\\])/.exec(data)[1]);\n\ntry {\n const custImages = JSON.parse(/customerImages:\\s*(\\[.+?\\])/.exec(data)[1]);\n images.push(...custImages);\n} catch (error) {}\n\n\nfor (let img of images) {\n res.push([img.replace(/\\/\\d+x\\d+\\//, '/1200x800/')]);\n}\n\ntry {\n const x = new XMLHttpRequest();\n x.open('GET', `https://bff.vseinstrumenti.ru/product/reviews?guid=${guid}&sortBy=createdAt&sortDirection=desc&hasImages=true&itemsPerPage=40&page=1`, false);\n x.withCredentials = true;\n x.send();\n const info = JSON.parse(x.responseText);\n\n for (let r of info.reviews) {\n for (const img of r.images) {\n const text = [r.productRating + '⭐'];\n if (r.content.advantages) text.push('👍🏻 ' + r.content.advantages);\n if (r.content.disadvantages) text.push('👎🏻 ' + r.content.disadvantages);\n if (r.content.comment) text.push(r.content.comment);\n if (r.content.reasonToBuy) text.push(r.content.reasonToBuy);\n res.push([img.replace('{width}x{height}', '1200x800'), text.join(' | ')]);\n }\n }\n} catch (error) {\n console.error(error);\n}\n\nreturn res;","img":"(cdn\\.vseinstrumenti\\.ru/images/(?:responses|goods)/.+)/\\d+x\\d+/(.+\\.jpg)","to":"$1/1200x800/$2\n","note":"hababr\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=1960#17\nOLD\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2680#6\n\n!!!\nФильтр поддерживает показ фото покупателей и их отзывов (если они имеются).\n\nПРИМЕРЫ\nhttps://www.vseinstrumenti.ru/category/motopompy-143/\nhttps://bryansk.vseinstrumenti.ru/category/schetchiki-vody-6935/?asc=asc&orderby=price"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement