Advertisement
Guest User

Untitled

a guest
Mar 4th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. {"REDDIT_media":{"link":"^(?:[a-z]{2,5}(?:-[a-z]{2})?\\.)?reddit\\.com/(?:r|user)/[^/]+/comments/([\\da-z]+)/[^/]+/(?:\\?utm_content=(?:title|thumbnail).*)?$","loop":1,"img":"^(g\\.redditmedia\\.com/[\\w-]+\\.gif\\?(?:[^&]+&)*?fm=mp4[^#]*)(.*)","to":":\nif ($[2] !== 0) return $[2] == '#mp4' ? $[0] : $[1] + '#mp4'\nvar u, p, c, n = window.location.hostname.slice(-10) == 'reddit.com' && this.node\n\nif (!n) return ''\n\nif (n.matches('div.link a.thumbnail,div.link a.thumbnail>img, div.link a.title, div.link a.thumbnail.image')) {\n p = n; while ((p = p.parentElement) && !p.matches('div.link'));\n u = p && p.dataset, u = u && (u.url || u.hrefUrl)\n if (u && /(v\\.redd\\.it|\\.reddit\\.com\\/gallery)\\//.test(u)) return u\n c = p && p.querySelector('div.expando[data-cachedhtml]')\n c = c && c.getAttribute('data-cachedhtml')\n u = c && c.match(/(?:<a href|(?:class=\"preview\"|<source) src)=\"([^\"]+)/g)\n if (u) {\n u = u.map(function (i) {\n var u = i.slice(i.lastIndexOf('\"') + 1).replace(/&amp;/g, '&');\n return u + (i[1] == 's' ? '#mp4' : '')\n });\n u = c.indexOf('<source') != -1 ? u.reverse() : u\n return u.length ? u.join('\\n') : ''\n }\n u = p.dataset, u = u.url || u.hrefUrl\n\n} else if (n.matches('a.Post__titleLink')) {\n u = n.closest('.Post__top').querySelector('a.PostThumbnail').href\n\n} else if (n.matches('a[data-click-id=body]>div>h3,.Post div>div[role=img]')) {\n p = n.closest('div[id^=t3_]');\n if (p && p.querySelector('p,i.icon-text')) return ''\n p = p.querySelector('a>.icon-outboundLink')\n p = p ? p.parentElement : { href: '//www.reddit.com/by_id/t3_' + $[1] + '.json' }\n p = this.find({ href: p.href, IMGS_TRG: n })\n n.title = n.getAttribute('aria-label') || n.title\n return (Array.isArray(p) ? p.join('\\n') : (p === null ? 'null' : p)) || ''\n\n} else if (n.matches('a.absolute')) {\n var pl = n.parentElement?.querySelector('shreddit-player')\n if (pl?.attributes?.src?.value) {\n return pl.attributes.src.value\n }\n\n u = n.parentElement?.attributes?.['content-href']?.value\n if (u) return u\n}\n\nreturn u && /^(https?:)?\\/\\/i\\.redd\\.?it/.test(u) ? u : ''","note":"hababr\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=2480#13\n\n!!!\nДля просмотра видео и альбомов на sh.reddit.com курсор следует наводить на весь блок с публикацией чуть сбоку или выше самого видео или галереи. На одиночных картинках фильтр работает как обычно.\n==\nTo view videos and albums on sh.reddit.com the cursor should be pointed at the entire blog with the publication slightly to the side or above the video or gallery itself. On single images, the sieve works as usual.\n\n\nEXAMPLES\nhttps://sh.reddit.com/r/IRLgirls/?feedViewType=classicView\nhttps://sh.reddit.com/?feed=home&feedViewType=classicView"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement