Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Bastyon":{"link":"^bastyon\\.com/index\\?(?:video=1&)?[sv]=([a-f0-9]+)","res":":\nconst o=JSON.parse($._.match(/window\\.project_config\\s*=\\s*([^;]+)/)[1]).servers.production.translateProxy, url=`https://${o.host}:${o.port}/`;\nconst d=u=>decodeURIComponent(u);\nfunction getJSON(path,param){\nconst x=new XMLHttpRequest();\nx.open('POST',url+path,false);\nx.setRequestHeader('Content-Type','application/json;charset=utf-8');\nx.send(param);\nreturn JSON.parse(x.responseText);\n}\n$=getJSON('rpc/getrawtransactionwithmessagebyid',`{\"parameters\":[[\"${$[1]}\"]],\"method\":\"getrawtransactionwithmessagebyid\"}`).data[0].u;\n$=getJSON('peertube/videos',`{\"urls\":[\"${d($)}\"]}`).data?.[d($)];\nconst t=[$?.publishedAt&&new Date($.publishedAt).toLocaleString(),$?.description?.replace(/[^\\n]+\\n/,'')].filter(Boolean).join(' | ');\n$=$?.streamingPlaylists[0]?.playlistUrl;\nthis.TRG.IMGS_ext_data=['//data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"640\" height=\"360\"></svg>',`<imagus-extension type=\"videojs\" url=\"${$}\"></imagus-extension>${t}`];\nreturn $?{loop:'imagus://extension'}:''","img":"^peertube(?:\\d+|\\.archive)\\.pocketnet\\.app/static/thumbnails/[a-f0-9-]{36}\\.jpg$","loop":2,"to":":\nlet id=this.node.closest('div[txid],div[stxid]')\nid=id&&(id.getAttribute('txid')||id.getAttribute('stxid'))\nreturn id?'https://bastyon.com/index?video=1&v='+id:$[0]"},"Brighteon":{"link":"^brighteon\\.com/(?:live/)?[a-f0-9-]{36}","loop":1,"res":"\"(?:source\":\\[{\"src|livestreamAddress)\":\"([^\"]+)"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement