Advertisement
Guest User

Untitled

a guest
May 14th, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. {"Bastyon":{"link":"^bastyon\\.com/index\\?(?:video=1&)?[sv]=([a-f0-9]+)","res":":\nconst x=new XMLHttpRequest(), o=JSON.parse($._.match(/window\\.project_config\\s*=\\s*([^;]+)/)[1]).servers.production.translateProxy, url=`https://${o.host}:${o.port}/`, vid=$[1];\nconst getJSON=(path,param)=>{\nconsole.log('Function:',path,param)\nx.open('POST',url+path,false);\nx.setRequestHeader('Content-Type','application/json;charset=utf-8');\nx.send(JSON.stringify(JSON.parse(param)));\nconsole.log('Response:',x.responseText.slice(0,40))\nreturn JSON.parse(x.responseText);\n}\n$=getJSON('rpc/getrawtransactionwithmessagebyid',`{\"parameters\":[[\"${vid}\"]],\"method\":\"getrawtransactionwithmessagebyid\"}`).data[0].u;\nconsole.log('POST URL',$)\nconst id=$.includes('%')?decodeURIComponent($):$;\n$=getJSON('peertube/videos',`{\"urls\":[\"${id}\"]}`).data?.[id];\nconst t=[$?.publishedAt&&new Date($.publishedAt).toLocaleString(),$?.description?.replace(/[^\\n]+\\n/,'')].filter(Boolean).join(' | ');\n$=$?.streamingPlaylists[0]?.playlistUrl;\nconsole.log('Media URL:',$)\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]"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement