// ==UserScript== // @name TJUPT Music JSON Uploady // @namespace http://tjupt.org/ // @version 0.1.1 // @description import json from red/ops/dic // @author Colder // @match https://*.tjupt.org/upload.php // @grant none // @require https://cdn.jsdelivr.net/npm/he@1.2.0/he.js // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; //this is not robust: 'wikiBody to BBCode' for DIC function wiki2bb(wiki) { //br wiki = wiki.replace(/
/g, ''); //quote wiki = wiki.replace(/
([\s\S]*?)<\/blockquote>/g,'[quote]$1[/quote]'); //hide wiki = wiki.replace(/(.*?)<\/strong>: \u9690\u85cf\u5185\u5bb9<\/strong>: (.*?)<\/a>