您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
comicInfo扩展包
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/453329/1340176/coofoUtils-comicInfo.js
// ==UserScript== // @name coofoUtils-comicInfo // @namespace https://github.com/coofo/someScript // @version 0.0.2 // @license MIT License // @description comicInfo扩展包 // @author coofo // @downloadURL https://github.com/coofo/someScript/raw/main/tampermonkey/coofoUtils-comicInfo.user.js // @supportURL https://github.com/coofo/someScript/issues // ==/UserScript== (function () { 'use strict'; window.coofoUtils.comicInfoUtils = { create: function (info) { let p = ['Series', 'Title', 'Number', 'Count', 'Volume', 'Summary', 'Notes', 'Year', 'Month', 'Day', 'Writer', 'Penciller', 'Inker', 'Colorist', 'Letterer', 'CoverArtist', 'Editor', 'Translator', 'Publisher', 'Imprint', 'Genre', 'Tags', 'Web', 'Format', 'BlackAndWhite', 'Manga', 'Characters', 'Teams', 'Locations', 'ScanInformation', 'StoryArc', 'StoryArcNumber', 'SeriesGroup', 'AgeRating', 'CommunityRating', 'PageCount', 'LanguageISO', 'LocalizedSeries']; let xml = "<?xml version='1.0' encoding='utf-8'?>\n"; xml += '<ComicInfo>\n'; for (let i = 0; i < p.length; i++) { let name = p[i]; let value = info[name]; if (value !== undefined && value !== null && value.length > 0) { if (typeof value === 'object') { value = value.join(','); } xml += ` <${name}>${coofoUtils.commonUtils.xss.htmlEscape(value)}</${name}>\n`; } } xml += '</ComicInfo>'; return xml; } }; })();