* 获取远程版本
(scriptUrl)
| 807 | * 获取远程版本 |
| 808 | */ |
| 809 | async function getVersion(scriptUrl) { |
| 810 | let data = await $.getScript( |
| 811 | `https://ghproxy.com/https://raw.githubusercontent.com/${scriptUrl}` |
| 812 | ); |
| 813 | let regex = /scriptVersionNow\s*=\s*(["'`])([\d.]+)\1/; |
| 814 | let match = data.match(regex); |
| 815 | scriptVersionLatest = match ? match[2] : ""; |
| 816 | } |
| 817 | |
| 818 | async function getNotice() { |
| 819 | try { |