mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
1.2 KiB
JavaScript
1 line
1.2 KiB
JavaScript
(()=>{return(t,e)=>{(async()=>{const i=await e.importAsync("aboutHtml");document.body.insertAdjacentHTML("beforeend",i);const n=(t,e)=>t.charCodeAt(0)-e.charCodeAt(0);const o=(t,e)=>n(t.name,e.name);const a=GM_info.script.name.match(/Bilibili Evolved \((.*)\)/)[1];new Vue({el:".bilibili-evolved-about",data:{version:t.currentVersion,clientType:a,branch:/Preview|Local/.test(a)?"preview":"master",authors:[{name:"Grant Howard",link:"https://github.com/the1812"},{name:"Coulomb-G",link:"https://github.com/Coulomb-G"}],contributors:[{name:"PleiadeSubaru",link:"https://github.com/Etherrrr"}].sort(o),participants:[{name:"Fetching participants...",link:null}],supporters:["*飞","N*v","*博睿","*杨","*泽鹏"].sort(n)},mounted(){this.fetchParticipants()},methods:{async fetchParticipants(){const t=new Set;let e=[];let i=1;do{e=await Ajax.getJson(`https://api.github.com/repos/the1812/Bilibili-Evolved/issues?state=all&direction=asc&per_page=100&page=${i}`);i++;for(const i of e){t.add(i.user.login)}}while(e.length>0);this.participants=[...t].map(t=>{return{name:t,link:`https://github.com/${t}`}}).filter(({link:t})=>{return!this.authors.some(e=>e.link===t)&&!this.contributors.some(e=>e.link===t)}).sort(o)}}})})()}})(); |