diff --git a/user.js b/user.js deleted file mode 100644 index 418a775..0000000 --- a/user.js +++ /dev/null @@ -1,8306 +0,0 @@ -// ==UserScript== -// @name Nightcore Creator App - Free Downloads -// @namespace http://tampermonkey.net/ -// @version 0.1 -// @description Allows downloading of songs on nightcore.app without Patreon. -// @author You -// @match https://nightcore.app/ -// @icon https://git.fuwafuwa.moe/Inaisoft/NightcoreCreatorAppPatreonBypass/raw/branch/master/favicon.ico -// @grant none -// ==/UserScript== - -(function() { - 'use strict'; - /* - NOTE: - You can use \\* to match actual asterisks instead of using it as a wildcard! - The examples below show a wildcard in use and a regular asterisk replacement. - */ - - var words = { - /////////////////////////////////////////////////////// - - - // Syntax: 'Search word' : 'Replace word', - 'Enable downloads by supporting us on Patreon.' : 'キタワァ*・゜゚・*:.。..。.:*・゜(n‘∀‘)η゚・*:.。. .。.:*・゜゚・* !!!!!', - - - /////////////////////////////////////////////////////// - '':''}; - - - - - - - - - - - - ////////////////////////////////////////////////////////////////////////////// - // This is where the real code is - // Don't edit below this - ////////////////////////////////////////////////////////////////////////////// - - var regexs = [], replacements = [], - tagsWhitelist = ['PRE', 'BLOCKQUOTE', 'CODE', 'INPUT', 'BUTTON', 'TEXTAREA'], - rIsRegexp = /^\/(.+)\/([gim]+)?$/, - word, text, texts, i, userRegexp; - - // prepareRegex by JoeSimmons - // used to take a string and ready it for use in new RegExp() - function prepareRegex(string) { - return string.replace(/([\[\]\^\&\$\.\(\)\?\/\\\+\{\}\|])/g, '\\$1'); - } - - // function to decide whether a parent tag will have its text replaced or not - function isTagOk(tag) { - return tagsWhitelist.indexOf(tag) === -1; - } - - delete words['']; // so the user can add each entry ending with a comma, - // I put an extra empty key/value pair in the object. - // so we need to remove it before continuing - - // convert the 'words' JSON object to an Array - for (word in words) { - if ( typeof word === 'string' && words.hasOwnProperty(word) ) { - userRegexp = word.match(rIsRegexp); - - // add the search/needle/query - if (userRegexp) { - regexs.push( - new RegExp(userRegexp[1], 'g') - ); - } else { - regexs.push( - new RegExp(prepareRegex(word).replace(/\\?\*/g, function (fullMatch) { - return fullMatch === '\\*' ? '*' : '[^ ]*'; - }), 'g') - ); - } - - // add the replacement - replacements.push( words[word] ); - } - } - - // do the replacement - texts = document.evaluate('//body//text()[ normalize-space(.) != "" ]', document, null, 6, null); - for (i = 0; text = texts.snapshotItem(i); i += 1) { - if ( isTagOk(text.parentNode.tagName) ) { - regexs.forEach(function (value, index) { - text.data = text.data.replace( value, replacements[index] ); - }); - } - } -var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; -function createCommonjsModule(e, t) { - return e(t = { - exports: {} - }, t.exports), - t.exports -} -var check = function(e) { - return e && e.Math == Math && e -} - , t = check("object" == typeof globalThis && globalThis) || check("object" == typeof window && window) || check("object" == typeof self && self) || check("object" == typeof e && e) || Function("return this")() - , fails = function(e) { - try { - return !!e() - } catch (e) { - return !0 - } -} - , n = !fails((function() { - return 7 != Object.defineProperty({}, 1, { - get: function() { - return 7 - } - })[1] -} -)) - , r = {}.propertyIsEnumerable - , o = Object.getOwnPropertyDescriptor - , a = { - f: o && !r.call({ - 1: 2 - }, 1) ? function propertyIsEnumerable(e) { - var t = o(this, e); - return !!t && t.enumerable - } - : r -} - , createPropertyDescriptor = function(e, t) { - return { - enumerable: !(1 & e), - configurable: !(2 & e), - writable: !(4 & e), - value: t - } -} - , i = {}.toString - , classofRaw = function(e) { - return i.call(e).slice(8, -1) -} - , u = "".split - , c = fails((function() { - return !Object("z").propertyIsEnumerable(0) -} -)) ? function(e) { - return "String" == classofRaw(e) ? u.call(e, "") : Object(e) -} -: Object - , requireObjectCoercible = function(e) { - if (null == e) - throw TypeError("Can't call method on " + e); - return e -} - , toIndexedObject = function(e) { - return c(requireObjectCoercible(e)) -} - , isObject = function(e) { - return "object" == typeof e ? null !== e : "function" == typeof e -} - , toPrimitive = function(e, t) { - if (!isObject(e)) - return e; - var n, r; - if (t && "function" == typeof (n = e.toString) && !isObject(r = n.call(e))) - return r; - if ("function" == typeof (n = e.valueOf) && !isObject(r = n.call(e))) - return r; - if (!t && "function" == typeof (n = e.toString) && !isObject(r = n.call(e))) - return r; - throw TypeError("Can't convert object to primitive value") -} - , s = {}.hasOwnProperty - , has = function(e, t) { - return s.call(e, t) -} - , l = t.document - , f = isObject(l) && isObject(l.createElement) - , documentCreateElement = function(e) { - return f ? l.createElement(e) : {} -} - , h = !n && !fails((function() { - return 7 != Object.defineProperty(documentCreateElement("div"), "a", { - get: function() { - return 7 - } - }).a -} -)) - , p = Object.getOwnPropertyDescriptor - , d = { - f: n ? p : function getOwnPropertyDescriptor(e, t) { - if (e = toIndexedObject(e), - t = toPrimitive(t, !0), - h) - try { - return p(e, t) - } catch (e) {} - if (has(e, t)) - return createPropertyDescriptor(!a.f.call(e, t), e[t]) - } -} - , anObject = function(e) { - if (!isObject(e)) - throw TypeError(String(e) + " is not an object"); - return e -} - , y = Object.defineProperty - , v = { - f: n ? y : function defineProperty(e, t, n) { - if (anObject(e), - t = toPrimitive(t, !0), - anObject(n), - h) - try { - return y(e, t, n) - } catch (e) {} - if ("get"in n || "set"in n) - throw TypeError("Accessors not supported"); - return "value"in n && (e[t] = n.value), - e - } -} - , g = n ? function(e, t, n) { - return v.f(e, t, createPropertyDescriptor(1, n)) -} -: function(e, t, n) { - return e[t] = n, - e -} - , setGlobal = function(e, n) { - try { - g(t, e, n) - } catch (r) { - t[e] = n - } - return n -} - , m = t["__core-js_shared__"] || setGlobal("__core-js_shared__", {}) - , b = Function.toString; -"function" != typeof m.inspectSource && (m.inspectSource = function(e) { - return b.call(e) -} -); -var w, S, _, k = m.inspectSource, x = t.WeakMap, A = "function" == typeof x && /native code/.test(k(x)), E = createCommonjsModule((function(e) { - (e.exports = function(e, t) { - return m[e] || (m[e] = void 0 !== t ? t : {}) - } - )("versions", []).push({ - version: "3.6.5", - mode: "global", - copyright: "© 2020 Denis Pushkarev (zloirock.ru)" - }) -} -)), R = 0, C = Math.random(), uid = function(e) { - return "Symbol(" + String(void 0 === e ? "" : e) + ")_" + (++R + C).toString(36) -}, O = E("keys"), sharedKey = function(e) { - return O[e] || (O[e] = uid(e)) -}, T = {}, P = t.WeakMap; -if (A) { - var L = new P - , j = L.get - , I = L.has - , M = L.set; - w = function(e, t) { - return M.call(L, e, t), - t - } - , - S = function(e) { - return j.call(L, e) || {} - } - , - _ = function(e) { - return I.call(L, e) - } -} else { - var D = sharedKey("state"); - T[D] = !0, - w = function(e, t) { - return g(e, D, t), - t - } - , - S = function(e) { - return has(e, D) ? e[D] : {} - } - , - _ = function(e) { - return has(e, D) - } -} -var U, B, q = { - set: w, - get: S, - has: _, - enforce: function(e) { - return _(e) ? S(e) : w(e, {}) - }, - getterFor: function(e) { - return function(t) { - var n; - if (!isObject(t) || (n = S(t)).type !== e) - throw TypeError("Incompatible receiver, " + e + " required"); - return n - } - } -}, N = createCommonjsModule((function(e) { - var n = q.get - , r = q.enforce - , o = String(String).split("String"); - (e.exports = function(e, n, a, i) { - var u = !!i && !!i.unsafe - , c = !!i && !!i.enumerable - , s = !!i && !!i.noTargetGet; - "function" == typeof a && ("string" != typeof n || has(a, "name") || g(a, "name", n), - r(a).source = o.join("string" == typeof n ? n : "")), - e !== t ? (u ? !s && e[n] && (c = !0) : delete e[n], - c ? e[n] = a : g(e, n, a)) : c ? e[n] = a : setGlobal(n, a) - } - )(Function.prototype, "toString", (function toString() { - return "function" == typeof this && n(this).source || k(this) - } - )) -} -)), G = t, aFunction = function(e) { - return "function" == typeof e ? e : void 0 -}, getBuiltIn = function(e, n) { - return arguments.length < 2 ? aFunction(G[e]) || aFunction(t[e]) : G[e] && G[e][n] || t[e] && t[e][n] -}, W = Math.ceil, z = Math.floor, toInteger = function(e) { - return isNaN(e = +e) ? 0 : (e > 0 ? z : W)(e) -}, V = Math.min, toLength = function(e) { - return e > 0 ? V(toInteger(e), 9007199254740991) : 0 -}, H = Math.max, Y = Math.min, toAbsoluteIndex = function(e, t) { - var n = toInteger(e); - return n < 0 ? H(n + t, 0) : Y(n, t) -}, createMethod = function(e) { - return function(t, n, r) { - var o, a = toIndexedObject(t), i = toLength(a.length), u = toAbsoluteIndex(r, i); - if (e && n != n) { - for (; i > u; ) - if ((o = a[u++]) != o) - return !0 - } else - for (; i > u; u++) - if ((e || u in a) && a[u] === n) - return e || u || 0; - return !e && -1 - } -}, Q = { - includes: createMethod(!0), - indexOf: createMethod(!1) -}, K = Q.indexOf, objectKeysInternal = function(e, t) { - var n, r = toIndexedObject(e), o = 0, a = []; - for (n in r) - !has(T, n) && has(r, n) && a.push(n); - for (; t.length > o; ) - has(r, n = t[o++]) && (~K(a, n) || a.push(n)); - return a -}, J = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], X = J.concat("length", "prototype"), Z = { - f: Object.getOwnPropertyNames || function getOwnPropertyNames(e) { - return objectKeysInternal(e, X) - } -}, ee = { - f: Object.getOwnPropertySymbols -}, te = getBuiltIn("Reflect", "ownKeys") || function ownKeys(e) { - var t = Z.f(anObject(e)) - , n = ee.f; - return n ? t.concat(n(e)) : t -} -, copyConstructorProperties = function(e, t) { - for (var n = te(t), r = v.f, o = d.f, a = 0; a < n.length; a++) { - var i = n[a]; - has(e, i) || r(e, i, o(t, i)) - } -}, ne = /#|\.prototype\./, isForced = function(e, t) { - var n = oe[re(e)]; - return n == ie || n != ae && ("function" == typeof t ? fails(t) : !!t) -}, re = isForced.normalize = function(e) { - return String(e).replace(ne, ".").toLowerCase() -} -, oe = isForced.data = {}, ae = isForced.NATIVE = "N", ie = isForced.POLYFILL = "P", ue = isForced, ce = d.f, _export = function(e, n) { - var r, o, a, i, u, c = e.target, s = e.global, l = e.stat; - if (r = s ? t : l ? t[c] || setGlobal(c, {}) : (t[c] || {}).prototype) - for (o in n) { - if (i = n[o], - a = e.noTargetGet ? (u = ce(r, o)) && u.value : r[o], - !ue(s ? o : c + (l ? "." : "#") + o, e.forced) && void 0 !== a) { - if (typeof i == typeof a) - continue; - copyConstructorProperties(i, a) - } - (e.sham || a && a.sham) && g(i, "sham", !0), - N(r, o, i, e) - } -}, se = Array.isArray || function isArray(e) { - return "Array" == classofRaw(e) -} -, toObject = function(e) { - return Object(requireObjectCoercible(e)) -}, createProperty = function(e, t, n) { - var r = toPrimitive(t); - r in e ? v.f(e, r, createPropertyDescriptor(0, n)) : e[r] = n -}, le = !!Object.getOwnPropertySymbols && !fails((function() { - return !String(Symbol()) -} -)), fe = le && !Symbol.sham && "symbol" == typeof Symbol.iterator, he = E("wks"), pe = t.Symbol, de = fe ? pe : pe && pe.withoutSetter || uid, wellKnownSymbol = function(e) { - return has(he, e) || (le && has(pe, e) ? he[e] = pe[e] : he[e] = de("Symbol." + e)), - he[e] -}, ye = wellKnownSymbol("species"), arraySpeciesCreate = function(e, t) { - var n; - return se(e) && ("function" != typeof (n = e.constructor) || n !== Array && !se(n.prototype) ? isObject(n) && null === (n = n[ye]) && (n = void 0) : n = void 0), - new (void 0 === n ? Array : n)(0 === t ? 0 : t) -}, ve = getBuiltIn("navigator", "userAgent") || "", ge = t.process, me = ge && ge.versions, be = me && me.v8; -be ? B = (U = be.split("."))[0] + U[1] : ve && (!(U = ve.match(/Edge\/(\d+)/)) || U[1] >= 74) && (U = ve.match(/Chrome\/(\d+)/)) && (B = U[1]); -var we = B && +B - , Se = wellKnownSymbol("species") - , arrayMethodHasSpeciesSupport = function(e) { - return we >= 51 || !fails((function() { - var t = []; - return (t.constructor = {})[Se] = function() { - return { - foo: 1 - } - } - , - 1 !== t[e](Boolean).foo - } - )) -} - , _e = wellKnownSymbol("isConcatSpreadable") - , ke = we >= 51 || !fails((function() { - var e = []; - return e[_e] = !1, - e.concat()[0] !== e -} -)) - , xe = arrayMethodHasSpeciesSupport("concat") - , isConcatSpreadable = function(e) { - if (!isObject(e)) - return !1; - var t = e[_e]; - return void 0 !== t ? !!t : se(e) -}; -_export({ - target: "Array", - proto: !0, - forced: !ke || !xe -}, { - concat: function concat(e) { - var t, n, r, o, a, i = toObject(this), u = arraySpeciesCreate(i, 0), c = 0; - for (t = -1, - r = arguments.length; t < r; t++) - if (isConcatSpreadable(a = -1 === t ? i : arguments[t])) { - if (c + (o = toLength(a.length)) > 9007199254740991) - throw TypeError("Maximum allowed index exceeded"); - for (n = 0; n < o; n++, - c++) - n in a && createProperty(u, c, a[n]) - } else { - if (c >= 9007199254740991) - throw TypeError("Maximum allowed index exceeded"); - createProperty(u, c++, a) - } - return u.length = c, - u - } -}); -var aFunction$1 = function(e) { - if ("function" != typeof e) - throw TypeError(String(e) + " is not a function"); - return e -} - , functionBindContext = function(e, t, n) { - if (aFunction$1(e), - void 0 === t) - return e; - switch (n) { - case 0: - return function() { - return e.call(t) - } - ; - case 1: - return function(n) { - return e.call(t, n) - } - ; - case 2: - return function(n, r) { - return e.call(t, n, r) - } - ; - case 3: - return function(n, r, o) { - return e.call(t, n, r, o) - } - } - return function() { - return e.apply(t, arguments) - } -} - , Ae = [].push - , createMethod$1 = function(e) { - var t = 1 == e - , n = 2 == e - , r = 3 == e - , o = 4 == e - , a = 6 == e - , i = 5 == e || a; - return function(u, s, l, f) { - for (var h, p, d = toObject(u), y = c(d), v = functionBindContext(s, l, 3), g = toLength(y.length), m = 0, b = f || arraySpeciesCreate, w = t ? b(u, g) : n ? b(u, 0) : void 0; g > m; m++) - if ((i || m in y) && (p = v(h = y[m], m, d), - e)) - if (t) - w[m] = p; - else if (p) - switch (e) { - case 3: - return !0; - case 5: - return h; - case 6: - return m; - case 2: - Ae.call(w, h) - } - else if (o) - return !1; - return a ? -1 : r || o ? o : w - } -} - , Ee = { - forEach: createMethod$1(0), - map: createMethod$1(1), - filter: createMethod$1(2), - some: createMethod$1(3), - every: createMethod$1(4), - find: createMethod$1(5), - findIndex: createMethod$1(6) -} - , arrayMethodIsStrict = function(e, t) { - var n = [][e]; - return !!n && fails((function() { - n.call(null, t || function() { - throw 1 - } - , 1) - } - )) -} - , Re = Object.defineProperty - , Ce = {} - , thrower = function(e) { - throw e -} - , arrayMethodUsesToLength = function(e, t) { - if (has(Ce, e)) - return Ce[e]; - t || (t = {}); - var r = [][e] - , o = !!has(t, "ACCESSORS") && t.ACCESSORS - , a = has(t, 0) ? t[0] : thrower - , i = has(t, 1) ? t[1] : void 0; - return Ce[e] = !!r && !fails((function() { - if (o && !n) - return !0; - var e = { - length: -1 - }; - o ? Re(e, 1, { - enumerable: !0, - get: thrower - }) : e[1] = 1, - r.call(e, a, i) - } - )) -} - , Oe = Ee.forEach - , Te = arrayMethodIsStrict("forEach") - , Pe = arrayMethodUsesToLength("forEach") - , Le = Te && Pe ? [].forEach : function forEach(e) { - return Oe(this, e, arguments.length > 1 ? arguments[1] : void 0) -} -; -_export({ - target: "Array", - proto: !0, - forced: [].forEach != Le -}, { - forEach: Le -}); -var je = Q.indexOf - , Ie = [].indexOf - , Me = !!Ie && 1 / [1].indexOf(1, -0) < 0 - , Fe = arrayMethodIsStrict("indexOf") - , De = arrayMethodUsesToLength("indexOf", { - ACCESSORS: !0, - 1: 0 -}); -_export({ - target: "Array", - proto: !0, - forced: Me || !Fe || !De -}, { - indexOf: function indexOf(e) { - return Me ? Ie.apply(this, arguments) || 0 : je(this, e, arguments.length > 1 ? arguments[1] : void 0) - } -}); -var Ue, $e = Object.keys || function keys(e) { - return objectKeysInternal(e, J) -} -, Be = n ? Object.defineProperties : function defineProperties(e, t) { - anObject(e); - for (var n, r = $e(t), o = r.length, a = 0; o > a; ) - v.f(e, n = r[a++], t[n]); - return e -} -, qe = getBuiltIn("document", "documentElement"), Ne = sharedKey("IE_PROTO"), EmptyConstructor = function() {}, scriptTag = function(e) { - return "