| 272 | |
| 273 | // 解析脚本信息 |
| 274 | function parseScriptInfo(script) { |
| 275 | return { |
| 276 | id: script.getAttribute('data-script-id'), |
| 277 | name: script.getAttribute('data-script-name'), |
| 278 | author: script.querySelector('dd.script-list-author').textContent, |
| 279 | description: script.querySelector('.script-description').textContent, |
| 280 | version: script.getAttribute('data-script-version'), |
| 281 | url: 'https://greasyfork.org/scripts/' + script.getAttribute('data-script-id'), |
| 282 | createDate: script.getAttribute('data-script-created-date'), |
| 283 | updateDate: script.getAttribute('data-script-updated-date'), |
| 284 | installs: script.getAttribute('data-script-total-installs'), |
| 285 | dailyInstalls: script.getAttribute('data-script-daily-installs'), |
| 286 | ratingScore: script.getAttribute('data-script-rating-score') |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | // 插入脚本 |
| 291 | function appendScriptsInfo(scriptsInfo) { |