// ==UserScript== // @name FR:ES - Viewer // @namespace https://www.reddit.com/user/RobotOilInc // @author RobotOilInc // @version 1.1.0 // @description Show all QCs in TaoBao and Yupoo // @include /^https?:\/\/((?:item|2)\.taobao|detail\.tmall)\.com\/(item|meal_detail)\.(htm|html)\?/ // @include /^https?:\/\/world.(?:taobao|tmall).com/item/\d+.htm/ // @include /^https?:\/\/world.(?:taobao|tmall).com/item/\d+.html/ // @include /^https?:\/\/.*\.x\.yupoo\.com\/albums\/\d+/ // @connect self // @connect localhost // @require https://code.jquery.com/jquery-3.4.1.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.js // @require https://greasyfork.org/scripts/426983-gm-fetch/code/GM%20Fetch.js // @require https://unpkg.com/swagger-client // @grant GM_xmlhttpRequest // @run-at document-end // @downloadURL none // ==/UserScript== /* jshint esversion: 8 */ /* globals $: false, SwaggerClient: false */ const _version = '1.0.0'; const _swagger_doc_url = 'https://localhost:8000/api/doc.json'; const _domains = ['https://localhost:8000', 'https://fashionreps.tools']; // eslint-disable-next-line func-names (async function () { // Create Swagger client from our own documentation const client = await new SwaggerClient(_swagger_doc_url); const $iframe = $('