Skip to content

Instantly share code, notes, and snippets.

View showgo001's full-sized avatar

showgo showgo001

View GitHub Profile
@showgo001
showgo001 / slack-shorten-with-complete-reaction.scss
Last active January 11, 2024 11:49
Slack extension with Stylus. Shorten message with the :complete: reaction icon.
@-moz-document url-prefix("https://app.slack.com/client/") {
/* Insert code here... */
[data-qa="message_container"]:has([data-stringify-emoji=":complete:"]) {
.c-message_kit__blocks {
max-height: 20px!important;
display: block;
opacity:0.3;
overflow: hidden;
}
@showgo001
showgo001 / keep-get-queries
Created October 27, 2022 09:31
特定のURLへの遷移リンクにGETパラメータを引き継ぐJS
window.onload = function setCvQuearyOnLoad() {
var param = GetQueryString();
var target_param = "key";
var target_val = "";
var target_url = "example.com";
if (param != null && param[target_param] != undefined) {
target_val = param[target_param];
var ankers = document.getElementsByTagName('a');
for (i = 0; i < ankers.length; i++) {
@showgo001
showgo001 / convert circle-number symbol into number
Created April 22, 2022 04:50
convert circle-number symbol into number and underscore
function convert {
arr=$1
for (( i = 0; i < ${#arr[@]}; ++i ))
do
if[ i > 9 ] then pad = i
else pad = 0${i}
fi
@showgo001
showgo001 / twitter-pc-ui-css-extension
Last active August 14, 2021 01:21
pc版(web)のtwitterのuiを見やすくするcss。
/*-- Twitter拡張 --*/
/*-- 引用リツイートのogp付きカード --*/
section[role=region] [role=article] [data-testid="card.wrapper"] [data-testid="card.layoutLarge.media"]{
height:0px;
opacity:.3;
}
section[role=region] [role=article] [data-testid="card.wrapper"]:hover [data-testid="card.layoutLarge.media"]{
height:inherit;