Skip to content

Instantly share code, notes, and snippets.

@kphrx
Last active August 6, 2024 19:21
Show Gist options
  • Save kphrx/477fed73eb8446f9881fd9a6011b080a to your computer and use it in GitHub Desktop.
Save kphrx/477fed73eb8446f9881fd9a6011b080a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name core-js for ZenzaWatch matches
// @namespace https://gist.github.com/kphrx/
// @description ZenzaWatch対象サイトでcore-jsを読み込むスクリプト
// @match *://www.nicovideo.jp/*
// @match *://ext.nicovideo.jp/
// @match *://ext.nicovideo.jp/#*
// @match *://blog.nicovideo.jp/*
// @match *://ch.nicovideo.jp/*
// @match *://com.nicovideo.jp/*
// @match *://commons.nicovideo.jp/*
// @match *://dic.nicovideo.jp/*
// @match *://ex.nicovideo.jp/*
// @match *://info.nicovideo.jp/*
// @match *://search.nicovideo.jp/*
// @match *://uad.nicovideo.jp/*
// @match *://api.search.nicovideo.jp/*
// @match *://*.nicovideo.jp/smile*
// @match *://site.nicovideo.jp/*
// @match *://anime.nicovideo.jp/*
// @match https://www.upload.nicovideo.jp/garage/*
// @match https://www.google.co.jp/search*
// @match https://www.google.com/search*
// @match https://*.bing.com/search*
// @match https://feedly.com/*
// @exclude *://ads.nicovideo.jp/*
// @exclude *://www.nicovideo.jp/watch/*?edit=*
// @exclude *://ch.nicovideo.jp/tool/*
// @exclude *://flapi.nicovideo.jp/*
// @exclude *://dic.nicovideo.jp/p/*
// @exclude *://ext.nicovideo.jp/thumb/*
// @exclude *://ext.nicovideo.jp/thumb_channel/*
// @grant none
// @author kphrx
// @version 1.0.0
// @run-at document-start
// @require https://cdn.jsdelivr.net/npm/[email protected]/minified.min.js
// @updateURL https://gist.github.com/kphrx/477fed73eb8446f9881fd9a6011b080a/raw/zenza-core-js.user.js
// ==/UserScript==
if (window.top === window) {
try {
console.log('@require', JSON.stringify({'core-js': window['__core-js_shared__'].versions[0].version}));
} catch(e) {
console.warn('@require failed!', location, e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment