MediaWiki:Gadget-libPolyfill.js:修订间差异
外观
AnnAngela-dbot(留言 | 贡献) 代码变动: 38ca441 - auto(Gadget-libPolyfill): new polyfill generated by generatePolyfill by github-actions[bot] 标签:由机器人或全自动脚本执行的操作 |
AnnAngela-dbot(留言 | 贡献) 代码变动: ff29d27 - auto(Gadget-libPolyfill): new polyfill generated by generatePolyfill by github-actions[bot] 标签:由机器人或全自动脚本执行的操作 |
||
| 第4行: | 第4行: | ||
* ------------------------------------------------------------------------- | * ------------------------------------------------------------------------- | ||
*/ | */ | ||
var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill.js|user=github-actions[bot]|co-authors=|longId= | var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill.js|user=github-actions[bot]|co-authors=|longId=ff29d27e65bd466c49cdd74578dd0d85def0822e|shortId=ff29d27|summary=auto(Gadget-libPolyfill): new polyfill generated by generatePolyfill}}'; | ||
/* <pre> */ | /* <pre> */ | ||
| 第11行: | 第11行: | ||
(function () { | (function () { | ||
var script = document.createElement("script"); | var script = document.createElement("script"); | ||
var url = new URL("https://polyfill.alicdn.com/v3/polyfill.js"); | |||
url.searchParams.set("features", "Array.from,Array.isArray,Array.prototype.copyWithin,Array.prototype.entries,Array.prototype.fill,Array.prototype.filter,Array.prototype.find,Array.prototype.flat,Array.prototype.forEach,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.some,Array.prototype.sort,Array.prototype.values,ArrayBuffer,ArrayBuffer.isView,Blob,DOMTokenList.prototype.forEach,DOMTokenList.prototype.replace,DataView,Date.now,Date.prototype.toISOString,DocumentFragment.prototype.append,DocumentFragment.prototype.prepend,Element.prototype.after,Element.prototype.animate,Element.prototype.append,Element.prototype.before,Element.prototype.classList,Element.prototype.closest,Element.prototype.matches,Element.prototype.nextElementSibling,Element.prototype.prepend,Element.prototype.remove,Element.prototype.replaceWith,Float32Array,Float64Array,Function.prototype.bind,Function.prototype.name,Int16Array,Int32Array,Int8Array,IntersectionObserver,Intl,Intl.DateTimeFormat,JSON,Map,MutationObserver,Node.prototype.contains,NodeList.prototype.forEach,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.isSafeInteger,Object.assign,Object.create,Object.defineProperties,Object.defineProperty,Object.entries,Object.fromEntries,Object.keys,Object.setPrototypeOf,Object.values,Promise,Reflect,Reflect.apply,Reflect.defineProperty,Reflect.deleteProperty,Reflect.has,Reflect.ownKeys,RegExp.prototype.flags,ResizeObserver,Set,String.fromCodePoint,String.prototype.anchor,String.prototype.codePointAt,String.prototype.endsWith,String.prototype.includes,String.prototype.link,String.prototype.padStart,String.prototype.repeat,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.iterator,Symbol.prototype.description,Symbol.species,Symbol.toPrimitive,URL,URL.prototype.toJSON,URLSearchParams,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray,WeakMap,WeakSet,XMLHttpRequest,atob,console,console.debug,console.error,console.info,console.log,console.warn,document,fetch,getComputedStyle,globalThis,localStorage,matchMedia"); | |||
url.searchParams.set("_", btoa(navigator.userAgent)); | |||
script.src = url.toString(); | |||
script.async = false; | script.async = false; | ||
var polyfillPromise = new Promise(function (res) { | var polyfillPromise = new Promise(function (res) { | ||
2024年1月21日 (日) 18:23的最新版本
/**
* -------------------------------------------------------------------------
* !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
* -------------------------------------------------------------------------
*/
var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill.js|user=github-actions[bot]|co-authors=|longId=ff29d27e65bd466c49cdd74578dd0d85def0822e|shortId=ff29d27|summary=auto(Gadget-libPolyfill): new polyfill generated by generatePolyfill}}';
/* <pre> */
"use strict";
(function () {
var script = document.createElement("script");
var url = new URL("https://polyfill.alicdn.com/v3/polyfill.js");
url.searchParams.set("features", "Array.from,Array.isArray,Array.prototype.copyWithin,Array.prototype.entries,Array.prototype.fill,Array.prototype.filter,Array.prototype.find,Array.prototype.flat,Array.prototype.forEach,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.some,Array.prototype.sort,Array.prototype.values,ArrayBuffer,ArrayBuffer.isView,Blob,DOMTokenList.prototype.forEach,DOMTokenList.prototype.replace,DataView,Date.now,Date.prototype.toISOString,DocumentFragment.prototype.append,DocumentFragment.prototype.prepend,Element.prototype.after,Element.prototype.animate,Element.prototype.append,Element.prototype.before,Element.prototype.classList,Element.prototype.closest,Element.prototype.matches,Element.prototype.nextElementSibling,Element.prototype.prepend,Element.prototype.remove,Element.prototype.replaceWith,Float32Array,Float64Array,Function.prototype.bind,Function.prototype.name,Int16Array,Int32Array,Int8Array,IntersectionObserver,Intl,Intl.DateTimeFormat,JSON,Map,MutationObserver,Node.prototype.contains,NodeList.prototype.forEach,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.isSafeInteger,Object.assign,Object.create,Object.defineProperties,Object.defineProperty,Object.entries,Object.fromEntries,Object.keys,Object.setPrototypeOf,Object.values,Promise,Reflect,Reflect.apply,Reflect.defineProperty,Reflect.deleteProperty,Reflect.has,Reflect.ownKeys,RegExp.prototype.flags,ResizeObserver,Set,String.fromCodePoint,String.prototype.anchor,String.prototype.codePointAt,String.prototype.endsWith,String.prototype.includes,String.prototype.link,String.prototype.padStart,String.prototype.repeat,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.iterator,Symbol.prototype.description,Symbol.species,Symbol.toPrimitive,URL,URL.prototype.toJSON,URLSearchParams,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray,WeakMap,WeakSet,XMLHttpRequest,atob,console,console.debug,console.error,console.info,console.log,console.warn,document,fetch,getComputedStyle,globalThis,localStorage,matchMedia");
url.searchParams.set("_", btoa(navigator.userAgent));
script.src = url.toString();
script.async = false;
var polyfillPromise = new Promise(function (res) {
script.addEventListener("load", function () { return res(); }, {
once: true
});
script.addEventListener("error", function () { return res(); }, {
once: true
});
});
Reflect.defineProperty(window, "polyfillPromise", {
configurable: false,
enumerable: true,
writable: false,
value: polyfillPromise
});
document.head.appendChild(script);
})();
/* </pre> */