Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Redlib":{"link":"^((?:libreddit|lr?|red(?:dit(?!\\.com/)|lib)?|rl?|snoo)\\.[^/]+|safereddit\\.com)/(?:r/\\w+/(?:comments/[a-z0-9]+|s)/\\w+|(u(?:ser)?/[\\w-]+))","loop":1,"url":": location.hostname===$[1] ? 'data:,'+$[0] : $[0]","res":":\nconst use_HLS = true // <- For sound with HLS player, set to true. For mp4 video without sound, set to false.\n\nif($.base[0]==='d'){\nconst x=new XMLHttpRequest();\nx.open('GET',$[0],false);\nx.send();\n$._=x.responseText;\n}\nconst u = 'https://'+$[1];\nif($[2]){\nlet t = $._.match(/(?:\"user_description\">([^<]+)<.+?)?<label>(Karma)<\\/label>[^<]+<label>(Created)<\\/label>[^<]+<div>([^<]+)<\\/div>[^<]+<div>([^<]+)<\\/div>/s);\nreturn [$._.match(/id=\"user_icon\" src=\"([^\"]+)/)?.[1],[t[1],t[2]+': '+t[4],t[3]+': '+t[5]].filter(Boolean).join(\", \")];\n}\nlet m, t = $._.match(/<div class=\"post_body\"><!-- SC_OFF --><div class=\"md\"><p>(.+?)<\\/p>/s)?.[1]||'';\nm = [...$._.matchAll(/<figure>[^<]+<a href=\"([^\"]+)\".+?<figcaption>[^<]+<p>([^<]*)<\\/p>/gs)].map((i,n)=>[u+i[1].replace(/&/g,'&'),[(!n?t:''),i[2]].filter(Boolean).join(\" | \")]);\nif(!m?.length)m = ($._.match(/\"og:video\" content=\"([^\"]+)/)?.[1]||$._.match(/<a id=\"post_url\" href=\"([^\"]+)/)?.[1]||$._.match(/<a href=\"([^\"]+)\" class=\"post_media_image\"/)?.[1])?.replace(/^\\//,u+'/')||'';\nif(use_HLS&&/vid\\/([^/]+)\\/\\d+\\.mp4$/.test(m)){\nm = m.replace(/vid\\/([^/]+)\\/\\d+\\.mp4/,'hls/$1/HLSPlaylist.m3u8');\nthis.TRG.IMGS_ext_data = ['//' + 'data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"640\" height=\"480\"></svg>',`<imagus-extension type=\"videojs\" url=\"${m}\"></imagus-extension>`];\nreturn 'imagus://extension'\n}\nreturn Array.isArray(m) ? m : [m,t]","note":"Imagus_fan\nhttps://www.reddit.com/r/imagus/comments/1d38g2k/comment/l68m7ok\n\n!!!\nBy default, the sieve plays video with sound using the [Extension] sieve from the rule-set. To use mp4 video without sound, set use_HLS in the sieve code to false.\n\n\nEXAMPLES\nhttps://l.opnxng.com/\nhttps://redlib.vimmer.dev/\nhttps://redlib.freedit.eu\nhttps://redlib.privacy.com.de/\netc"}}
Advertisement
Add Comment
Please, Sign In to add comment