Skip to content

Instantly share code, notes, and snippets.

View KEINOS's full-sized avatar

KEINOS KEINOS

View GitHub Profile
@t-asa2000
t-asa2000 / twitter_customize.css
Last active November 28, 2021 07:28
自分仕様のTwitter(2020.7.23現在) #stylus #css
/*緑ベースのUIにする*/
svg.r-13gxpu9.r-4qtqp9.r-yyyyoo.r-16y2uox.r-1q142lx.r-8kz0gk.r-dnmrzs.r-bnwqim.r-1plcrui.r-lrvibr,.r-nw8l94 {
color: #00BC00;
}
.r-b5skir {
background-color: #00BC00;
}
/*サイドバーを非表示にする*/
@myobie
myobie / ci.yml
Last active September 20, 2023 09:26
Don't run GitHub Actions for pull requests that are drafts
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
@hidao80
hidao80 / mastogetter_url_shortener.gs
Created September 21, 2020 06:27
mastogetter用URL短縮Web API(Google Apps Script版)
//HTTP GETをハンドリングする
function doGet(e) {
//リクエストパラメータ名"q"の値を取得する
//あらかじめURLエンコードしたものを受け取ること!
const text = e.parameter.q;
console.log(text);
console.log(encodeURIComponent(text));
const payload = "url=" + encodeURIComponent(text);
const options = {
"method" : "post",
@woxtu
woxtu / background.js
Last active December 30, 2020 08:02
Qiitadon 新着 通知
const ws = new WebSocket("wss://streaming.qiitadon.com:4000/api/v1/streaming/?stream=public:local");
ws.addEventListener("message", (ev) => {
const { event, payload } = JSON.parse(ev.data);
if (event == "update") {
const status = JSON.parse(payload);
chrome.notifications.create(status.id, {
type: "basic",
iconUrl: status.account.avatar || status.account.avatar_static || "icon.png",
/**
* Copyright (c) 2022 hidao80
* Released under the MIT license
* https://opensource.org/licenses/mit-license.php
*/
(function () {
const instance = "https://misskey.dev";
const link_text = "選択範囲へ直リンク";
const LF = '\n';
const CR = '\r';
@hidao80
hidao80 / Right-click-jammer-canceller.bookmarklet.js
Last active September 5, 2023 09:46
Bookmarklet to enable context menus on web pages that do not allow right-clicking.
javascript:(()%3D%3E%7B!function()%7Bfor(const%20o%20of%5Bdocument%2Cdocument.body%5D)o.addEventListener(%22contextmenu%22%2C(o%3D%3E%7Bo.stopImmediatePropagation()%7D)%2C!0)%7D()%3B%7D)()