commit dc3ad2a59a0b540fe3f8ea4679be5e22a4070c24 Author: Pk11 Date: Fri May 27 07:58:43 2022 -0500 Initial commit diff --git a/%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BB.css b/%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BB.css new file mode 100644 index 0000000..021d16b --- /dev/null +++ b/%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BB.css @@ -0,0 +1,9 @@ +/* ==UserStyle== +@name ニコニコ動画 +@description 動画右の広告を隠し +@match https://www.nicovideo.jp/* +==/UserStyle== */ + +.NicoSpotAdContainer { + display: none; +} diff --git a/Discord.css b/Discord.css new file mode 100644 index 0000000..fbddf2d --- /dev/null +++ b/Discord.css @@ -0,0 +1,156 @@ +/* ==UserStyle== +@name Discord +@description Makes Discord be pink when in light theme +@match https://discord.com/* +==/UserStyle== */ + +/* + * Makes Discord be pink when in light theme, dark + * theme is mostly completely unaffected except for + * hiding the, gift Nitro button, voice channels, + * and the channel invite buttons and showing full + * user bios, all of which are in the first + * three CSS rules. + * + * Works in Safari and with BeautifulDiscord. + */ + +/* Hide voice channels, channel invites, and the thing when hovering a message */ +a[aria-label~="(ボイスチャンネル)"] { + visibility: hidden!important; +} +[aria-label=ギフトを贈る], [aria-label=招待を作成] { + display: none!important; +} + +/* Show full bios */ +.clamped-IwJfxR { + display: block!important; +} + +/* All of the variable colors as of making this, not all are changed */ +.theme-light { + --header-primary: #1a1515!important; + --header-secondary: #604f4f!important; + --text-normal: #493535!important; + --text-muted: #836969!important; + --text-link: #a82562!important; + --channels-default: #241919!important; + --interactive-normal: #604f4f!important; + --interactive-hover: #382e2e!important; + --interactive-active: #070606!important; + --interactive-muted: #dbb7b7!important; + --background-primary: #fff5f5!important; + --background-secondary: #ffeeee!important; + --background-secondary-alt: #f7dcdc!important; + --background-tertiary: #ffe2e2!important; + --background-accent: #b2d9ea!important; + --background-floating: rgb(255, 231, 231)!important; + --background-mobile-primary: #f9f8f8!important; + --background-mobile-secondary: #fff!important; + --background-modifier-hover: #ffdcdc!important; + --background-modifier-active: #f1caca!important; + --background-modifier-selected: #fad2d2!important; + --background-modifier-accent: rgba(7, 6, 6, 0.08)!important; + --background-mentioned: rgba(250,166,26,0.1)!important; + --background-mentioned-hover: rgba(250,166,26,0.2)!important; + --background-message-hover: transparent!important; + --background-help-warning: rgba(250,166,26,0.1)!important; + --background-help-info: rgba(224, 0, 0, 0.1)!important; + --scrollbar-thin-thumb: rgba(92, 79, 79, 0.3)!important; + --scrollbar-thin-track: transparent!important; + --scrollbar-auto-thumb: rgb(230, 167, 167)!important; + --scrollbar-auto-track: #fdd0d0!important; + --scrollbar-auto-scrollbar-color-thumb: #e8e3e3!important; + --scrollbar-auto-scrollbar-color-track: #f5f2f2!important; + --elevation-stroke: 0 0 0 1px rgba(7, 6, 6, 0.08)!important; + --elevation-low: 0 1px 0 rgba(7, 6, 6, 0.1),0 1.5px 0 rgba(7, 6, 6, 0.025),0 2px 0 rgba(7, 6, 6, 0.025)!important; + --elevation-medium: 0 4px 4px rgba(0,0,0,0.08)!important; + --elevation-high: 0 8px 16px rgba(0,0,0,0.16)!important; + --logo-primary: #7289da!important; + --focus-primary: #00b0f4!important; + --radio-group-dot-foreground: #4e5d94!important; + --guild-header-text-shadow: 0 1px 1px hsla(0,0%,100%,0.4)!important; + --channeltextarea-background: #ffe3e3!important; + --activity-card-background: #f0f!important; + --textbox-markdown-syntax: #6a7480!important; + --deprecated-card-bg: #fddada!important; + --deprecated-card-editable-bg: #fddada!important; + --deprecated-store-bg: #f0f!important; + --deprecated-quickswitcher-input-background: rgb(252, 224, 224)!important; + --deprecated-quickswitcher-input-placeholder: rgba(92, 79, 79, 0.3)!important; + --deprecated-text-input-bg: rgba(92, 79, 79, 0.02)!important; + --deprecated-text-input-border: rgba(92, 79, 79, 0.3)!important; + --deprecated-text-input-border-hover: #beb9b9!important; + --deprecated-text-input-border-disabled: #dedcdc!important; + --deprecated-text-input-prefix: #beb9b9!important; + --font-display: inherit; + /* --font-japanese: Whitney,Hiragino Sans,"ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,Osaka,"MS PGothic","Helvetica Neue",Helvetica,Arial,sans-serif,nintendo_NTLG-DB_001; */ +} + +/* Force the background in a few hardcoded places */ +.theme-light .uploadModal-2ifh8j, +.theme-light .root-1gCeng.small-3iVZYw, +.theme-light .container-1D34oG, +.theme-light .reactors-Blmlhw { + background-color: var(--background-primary)!important; +} +.theme-light .body-3iLsc4, +.theme-light .footer-1fjuF6, +.theme-light .footer-3mqk7D, +.theme-light .footer-2gL1pp, +.theme-light .container-1If-HZ .scroller-1-nKid { + background-color: var(--background-secondary)!important; +} +.theme-light .headerNormal-T_seeN { + background-color: var(--background-tertiary)!important; +} + +/* Make unread channels bold */ +.theme-light .modeUnread-1qO3K1 .name-23GUGE { + font-weight: 600!important; + color: #000!important; +} + +/* Make secondary and tertiary columns have a stripey bg */ +.theme-light .guilds-1SWlCJ .scroller-1Bvpku, +.theme-light .scroller-RmtA4e.thin-1ybCId, +.theme-light .members-1998pB, +.theme-light .members-1998pB .content-3YMskv, +.theme-light .macButtons-2MuSAC { + background-image: url("https://media.discordapp.net/attachments/614278143527878658/824924138505633812/diagonal_2.png")!important; + background-attachment: fixed!important; +} + +/* Rename the "ライト" theme to "ピンク" */ +main.contentColumn-2hrIYH > div > div > div:nth-of-type(2) > div[role=radiogroup] > div.item-26Dhrx[role=radio]:nth-of-type(2) > .radioBar-bMNUI- > .info-3LOr12 > .size16-1P40sf { + visibility: hidden!important; +} +main.contentColumn-2hrIYH > div > div > div:nth-of-type(2) > div[role=radiogroup] > div.item-26Dhrx[role=radio]:nth-of-type(2) > .radioBar-bMNUI- > .info-3LOr12 > .size16-1P40sf::before { + visibility: visible!important; + content: "ピンク"!important; +} + +/* Use 4 space tabs */ +code.codeView-1JPDeA, span.codeLine-14BKbG { + tab-size: 4!important; +} + +/* Put || around spoilers */ +span.spoilerText-3p6IlD::before, span.spoilerText-3p6IlD::after { + content: "||"; + color: #777; +} + +/* Change timestamps from background to <> */ +span.timestamp-1Dd_pn { + background-color: unset; +} +span.timestamp-1Dd_pn::before { + content: "<"; + color: #999; +} +span.timestamp-1Dd_pn::after{ + content: ">"; + color: #999; +} diff --git a/GBAtemp.css b/GBAtemp.css new file mode 100644 index 0000000..a514903 --- /dev/null +++ b/GBAtemp.css @@ -0,0 +1,8 @@ +/* ==UserStyle== +@name GBAtemp +@match https://gbatemp.net/* +==/UserStyle== */ + +div.pw-tag.pw-in-article, .pw-tag { + display: none!important; +} diff --git a/GBAtemp.js b/GBAtemp.js new file mode 100644 index 0000000..adda3d0 --- /dev/null +++ b/GBAtemp.js @@ -0,0 +1,28 @@ +// ==UserScript== +// @name GBAtemp +// @description スクリプトをキル +// @match https://gbatemp.net/* +// @run-at document-start +// @weight 999 +// ==/UserScript== + +// document.write("hello"); + +const observer = new MutationObserver(mutations => { + mutations.forEach(({ addedNodes }) => { + addedNodes.forEach(node => { + if(node.nodeType === 1 && (node.tagName === "SCRIPT" || node.tagName === "IFRAME")) { +// if(needsToBeBlacklisted(node.src, node.type)) { + node.type = "javascript/blocked"; + node.remove(); +// } + } + }) + }) +}) + +// Starts the monitoring +observer.observe(document.documentElement, { + childList: true, + subtree: true +}) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/Miniflux - Enclosure.js b/Miniflux - Enclosure.js new file mode 100644 index 0000000..9a9d822 --- /dev/null +++ b/Miniflux - Enclosure.js @@ -0,0 +1,7 @@ +// ==UserScript== +// @name Miniflux - Enclosure +// @description エントリーのエンクロージャーを自動開く +// @match https://*/*/entry/* +// ==/UserScript== +for(e of document.getElementsByClassName("entry-enclosures")) + e.open = true; diff --git a/Miniflux - External links.js b/Miniflux - External links.js new file mode 100644 index 0000000..fd4560a --- /dev/null +++ b/Miniflux - External links.js @@ -0,0 +1,25 @@ +// ==UserScript== +// @name Miniflux - External links +// @description 「全ての外部リンクをコピー」ボタンを追加 +// @match https://*/unread +// @match https://*/feed/*/entries* +// ==/UserScript== + +const clip = 'Download more icon variants from https://tabler-icons.io/i/clipboard'; +const check = 'Download more icon variants from https://tabler-icons.io/i/clipboard-check'; + +let a = document.createElement("a"); +a.href = "#"; +a.innerHTML = clip + "全ての外部リンクをコピー"; +a.addEventListener("click", () => { + let links = Array.from(document.querySelectorAll(".item-meta-icons > li:nth-of-type(3) > a")).map(r => r.href); + navigator.clipboard.writeText(links.join("\n")); + li.removeChild(a); + let em = document.createElement("em"); + li.appendChild(em); + em.innerHTML = check + "コピーしました"; +}); + +let li = document.createElement("li"); +li.appendChild(a); +document.querySelector("section.page-header ul").appendChild(li); diff --git a/README.md b/README.md new file mode 100644 index 0000000..c81b14f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ユーザースクリプト + +様々なユーザースクリプトファイル。これはSafariの[Userscripts](https://github.com/quoid/userscripts)プラグインで使用が、他のブラウザーにもおそらく機能する。 diff --git a/Scribble Hub.css b/Scribble Hub.css new file mode 100644 index 0000000..375dbff --- /dev/null +++ b/Scribble Hub.css @@ -0,0 +1,14 @@ +/* ==UserStyle== +@name Scribble Hub +@description カバーを中央する +@match https://www.scribblehub.com/* +==/UserStyle== */ + +.fic_image { + height: 230px; + display: table-cell; + vertical-align: middle; +} +.fic_image img { + height: auto!important; +} diff --git a/melonDS.css b/melonDS.css new file mode 100644 index 0000000..fb7fb5c --- /dev/null +++ b/melonDS.css @@ -0,0 +1,12 @@ +/* ==UserStyle== +@name melonDS +@description ライトモード +@match https://melonds.kuribo64.net/* +==/UserStyle== */ + +table.ptable td.c1.padded, +table.ptable td.entrycontents, +table.ptable td.commentcontents { + background-color: white; + color: #222; +}