您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
swagger 2.0 友好交互拓展工具
当前为
// ==UserScript== // @name swagger-extends // @namespace http://tampermonkey.net/ // @version 1.0 // @description swagger 2.0 友好交互拓展工具 // @author teeeemoji // @include /.*\/swagger-ui\.html.*/ // ==/UserScript== function createDom(type, props, style) { const dom = document.createElement(type) Object.assign(dom, props) Object.assign(dom.style, style) return dom } const appStyle = createDom('link', { as: 'style', rel: 'stylesheet', type: 'text/css', href: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/css/app.bc8fc8bb.css' }) const chunkStyle = createDom('link', { as: 'style', rel: 'stylesheet', type: 'text/css', href: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/css/chunk-vendors.c63c8862.css' }) const eleWoff = createDom('link', { href: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/fonts/element-icons.535877f5.woff' }) const eleTtf = createDom('link', { href: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/fonts/element-icons.732389de.ttf' }) document.head.append(appStyle) document.head.append(chunkStyle) document.head.append(eleWoff) document.head.append(eleTtf) const appScript = createDom('script', { src: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/js/app.f36a5b61.js' }) const chunkScript = createDom('script', { src: 'https://sf16-eacdn-tos.pstatp.com/obj/eaoffice/swagger-extends/js/chunk-vendors.6c93c822.js' }) document.body.append(appScript) document.body.append(chunkScript)