This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* リンクカードにタイトル出す */ | |
article [data-testid*="card"] a[role="link"][aria-label]::after { | |
content: attr(aria-label); | |
border: 1px solid rgb(47, 51, 54); | |
border-top: 0; | |
padding: 7px; | |
color: rgb(220, 220, 220); | |
word-break: break-all; | |
font: 14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134 26"><path d="M21.8.2H3.5C1.6.2.1 1.7.1 3.6v15.5c0 1.9 1.5 3.4 3.4 3.4h5.7l3.4 3.4 3.4-3.4h5.7c1.9 0 3.4-1.5 3.4-3.4V3.6c.2-1.9-1.4-3.4-3.3-3.4z" fill="#1da1f2"/><path d="M9.6 18.6c6.3 0 9.8-5.2 9.8-9.8v-.4c.7-.5 1.3-1.1 1.7-1.8-.6.3-1.3.5-2 .5.7-.4 1.3-1.1 1.5-1.9-.6.4-1.4.7-2.2.8-.6-.6-1.5-1-2.5-1-1.9 0-3.4 1.5-3.4 3.4 0 .3 0 .5.1.8C9.7 9 7.2 7.7 5.5 5.6c-.3.5-.5 1.1-.5 1.7 0 1.2.6 2.2 1.5 2.9-.5 0-1.1-.2-1.5-.5 0 1.7 1.2 3.1 2.8 3.4-.3.1-.6.1-.9.1-.2 0-.4 0-.6-.1.4 1.4 1.7 2.4 3.2 2.4-1.2.9-2.7 1.5-4.3 1.5h-.8c1.4 1 3.2 1.6 5.2 1.6M36.1 4.9v2.5h4v11h3v-11h4.1V4.9H36.1zm51.7 0v13.5h5.8c4.1 0 6.1-2.9 6.1-6.8 0-4.5-2.6-6.7-6.1-6.7h-5.8zm33.6 0v13.6h2.7v-3.4l1-1 2.7 4.4h3.3l-4.1-6.2 3.7-3.6h-3.2l-3.4 3.5V4.9h-2.7zM82 5.7v3h-1.7v1.8h1.6v5.8c0 1.9 1.4 2.3 3.1 2.3.6 0 1.1 0 1.6-.1v-2.1c-.2.1-.5.1-.8.1-.9 0-1.1-.2-1.1-1.1v-4.9h2V8.7h-2v-3H82zm8.9 1.7H93c2.9 0 3.9 1.8 3.9 4.5 0 3-1.7 4.1-3.4 4.1h-2.6V7.4zm-25.8.9c-3 0-5 2.3-5 5.2 0 3.1 1.9 5.2 5 5.2 2.2 0 3.8- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name misskey-nya2na | |
// @namespace misskey-nya2na | |
// @version 0.1 | |
// @description replace misskey notes にゃ to ruby-ed な(にゃ) | |
// @author hogashi | |
// @match https://misskey.io/ | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
const toc = [...document.querySelector('#readme').querySelectorAll('h1, h2, h3, h4, h5, h6')].map(h => | |
`${ | |
' '.repeat( | |
/* "H1" などから "1" を取ってきて 1 引いて行頭の空白の個数に使う */ | |
parseInt(h.tagName.match(/[0-9]+/)[0], 10) - 1 | |
) | |
}- [${h.innerText}](${h.querySelector('a').href})` | |
).join('\n'); | |
console.log(toc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
const scroller = document.querySelector('.SpreadsheetGridScroller-verticalScroller'); | |
const scrollHeightHistory = [-100]; | |
const timer = setInterval(() => { | |
/* 開いてるのを閉じる */ | |
document.querySelectorAll('.TaskGroup--withHeader .TaskGroupHeader-toggleButton:has(.DownTriangleIcon)').forEach(button => button.click()); | |
console.log(scroller.scrollHeight); | |
scrollHeightHistory.push(scroller.scrollHeight); | |
if ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
const closeAllButtonContainer = document.createElement('div'); | |
document.querySelector('.AddTaskDropdownButton').parentElement.appendChild(closeAllButtonContainer); | |
closeAllButtonContainer.classList.add('SecondarySplitDropdownMenuButton', 'AddTaskDropdownButton'); | |
const closeAllButton = document.createElement('div'); | |
closeAllButtonContainer.appendChild(closeAllButton); | |
closeAllButton.classList.add(...'ThemeableRectangularButtonPresentation--isEnabled ThemeableRectangularButtonPresentation ThemeableRectangularButtonPresentation--medium SecondarySplitDropdownMenuButton-leftButton SecondarySplitDropdownMenuButton-leftButton'.split(' ')); | |
closeAllButton.setAttribute('role', 'button'); | |
closeAllButton.textContent = 'Close/Open all sections'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (() => { | |
document.querySelector('.timeline-comment-header .timeline-comment-actions > .details-overlay summary').click(); | |
setTimeout(() => { | |
document.querySelector('button[aria-label="Edit comment"]').click(); | |
}, 1500); /* メニューを開いてから Edit ボタン出るまでに通信があるので待つ */ | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public class EditorWindowSample : EditorWindow | |
{ | |
[MenuItem("Editor/Sample")] | |
private static void Create() | |
{ | |
GetWindow<EditorWindowSample>("rename samplescene"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ function ane(){ aws help | perl -pe 's|a[^ ]*w[^ ]*s|ane|g' | perl -pe 's|AWS|ANE|g' | head -18; } | |
$ ane help | |
ANE() ANE() | |
NAME | |
ane - | |
DESCRIPTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"秋の田の", | |
"かりほの庵の", | |
"苫をあらみ", | |
"わが衣手は", | |
"露にぬれつつ" | |
], | |
[ | |
"春すぎて", |
NewerOlder