Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Phica-x":{"link":"^(phica\\.eu)/forums/media/(albums/)?[\\w-]+\\.\\d+/","loop":1,"res":":\nif(!$[2])return $._.match(/<(?:img|source) src=\"((?:https:\\/\\/[^\\/]+)?\\/forums\\/(?:medi|dat)a\\/[^\"]+)/)?.[1].replace(/^\\/[^\\/]/,'//www.'+$[1]+'$&')||'';\nlet m=[];\nfunction getVid(u){\nconst x=new XMLHttpRequest();\nx.open('GET',u,false);\nx.send();\nreturn x.responseText.match(/<source src=\"((?:https:\\/\\/[^\\/]+)?\\/forums\\/(?:medi|dat)a\\/[^\"]+)/)?.[1].replace(/^\\/[^\\/]/,'//www.'+$[1]+'$&')\n}\n$._=[...new DOMParser().parseFromString($._,'text/html').getElementsByClassName('js-lbImage')];\n$._.forEach(i=>m.push([i.getAttribute('data-lb-type-override')==='video' ? getVid(i.href) : i.getAttribute('data-src')]));\nreturn m","img":"^phica\\.eu/forums/attachments/\\d+/","to":"$&\n$&#mp4","note":"imqswt\nhttps://www.reddit.com/r/imagus/comments/z0zyox/comment/lubsx2n\nOLD\nhttps://www.reddit.com/r/imagus/comments/c4hnv6/comment/es0qn42\n\nEXAMPLES\nhttps://www.phica.eu/forums/media/page-4\nhttps://www.phica.eu/forums/media/categories/coppie.9/"}}
Add Comment
Please, Sign In to add comment