// ==UserScript== // @name 一键获取动漫花园下载磁链 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 一键获取下载链接地址! // @author You // @match https://share.dmhy.org/* // @icon https://share.dmhy.org/favicon.ico // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function () { 'use strict'; let urls = [] let addDom = { hasStyle: false, init() { if (!this.hasStyle) { this.addDialog(); } getInfo.getUrls(); }, addDialog() { let height = document.documentElement.clientHeight ; let styleElement = document.createElement('style'); styleElement.type = 'text/css'; styleElement.innerHTML = ` .kaze-dialog { position: fixed; width: 100vw; height: ${height}px; background-color: #23aee5b7; left: 0; top: 0; display: flex; flex-direction: column; justify-content: space-around; align-content: center; flex-wrap: nowrap; align-items: center; } .kaze-dialog .kaze-dialog-input{ width: 90vw; height: 70%; } .kaze-dialog .kaze-dialog-title{ top: 5vh; color: #000; width: 100%; font-size: 25px; text-align: center; }`; document.getElementsByTagName('body')[0].appendChild(styleElement); let dialogDiv = document.createElement('div'); dialogDiv.innerHTML = `