Skip to content

Instantly share code, notes, and snippets.

@noromanba
noromanba / datetimestring-local.js
Last active January 12, 2023 21:56
format local datetime to "yyyy/MM/dd HH:mm:ss" string
// format local datetime to "yyyy/MM/dd HH:mm:ss" string
// @author noromanba https://noromanba.github.com
// @licence CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
// https://gist.github.com/noromanba/6737784
// https://gist.github.com/noromanba/6736822
const toDatetimeString = (date) => {
return [
date.toLocaleDateString('ja', {
year: 'numeric',
month: '2-digit',
@noromanba
noromanba / firefox-extensions-status.md
Last active October 12, 2017 22:59
Firefox Extensions status

Firefox Extensions status

generated from about:support

  • Firefox: v56.0
  • e10s: Disabled by add-ons
  • OS: Ubuntu 16.04.3 LTS Xenial

Extensions

@noromanba
noromanba / mc-un-check-it-out.user.js
Last active September 12, 2017 17:45
avoid accidental remove on mixcloud.com for UserScript
// ==UserScript==
// @name Hey MC! (un) [x] it out
// @namespace https://noromanba.github.com
// @description avoid accidental remove on mixcloud.com for UserScript
// @include *://*.mixcloud.com/*
// @grant none
// @noframes
// @run-at document-end
// @version 2017.9.12.0
// @homepage https://gist.github.com/noromanba/539e4359fc9ea287fb49d930a4eac6c5
@noromanba
noromanba / mc-full-trackname.user.js
Last active July 30, 2017 20:58
show detailed track-title on mixcloud.com for UserScript
// ==UserScript==
// @name MC full trackname
// @namespace https://noromanba.github.com
// @description show detailed track-title on mixcloud.com for UserScript
// @include https://www.mixcloud.com/*
// @grant none
// @noframes
// @run-at document-end
// @version 2017.7.30.0
// @homepage https://gist.github.com/noromanba/173e261aae4b083eff7c2cef48b8f5dc
@noromanba
noromanba / zalgolf-js.md
Last active November 29, 2017 04:09
js Zalgo Scrambled Text + slightly code-golf

Zalgolf / Re:Zalgo

js Zalgo Scrambled Text + slightly code-golf

original code and description by @aTakaakiSeki

[].concat(...[...document.all].map(e => [...e.childNodes])).filter(n => n.nodeType === Node.TEXT_NODE).map(n => n.textContent = n.textContent.replace(/([a-zA-Z])/g, (_, c) => c + [...Array(Math.floor(Math.random()*30))].map(() => String.fromCharCode(0x300 + Math.floor(Math.random()*79))).join('')))

@noromanba
noromanba / unsorteduniq.sh
Created May 1, 2017 22:52
unsorted uniq w/ remove trailing spaces
#!/usr/bin/env bash
# unsorted uniq w/ remove trailing spaces
# @version 2017.4.29.0
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba
# require sponge(1) provided w/ moreutils
set -euC
@noromanba
noromanba / jsonbeauty.sh
Created May 1, 2017 22:51
beautify json w/ 4-space indent
#!/usr/bin/env bash
# beautify json w/ 4-space indent
# @version 2017.4.29.0
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba
# require sponge(1) provided w/ moreutils
set -euC
@noromanba
noromanba / chrome-flags-next-to.js
Created April 25, 2017 19:19
scroll into changed flags on Chrome/mium for Devtools Console
// @name next +flag
// @namespace http://noromanba.flavors.me
// @description scroll into changed flags on Chrome/mium for Devtools Console
// @include chrome://flags/*
// @version 2017.4.25.1
// @homepage https://gist.github.com/noromanba/e5020682a9dc6ade06a019615425c7cd
// @license MIT License https://nrm.mit-license.org/2017
// @author noromanba http://noromanba.flavors.me
@noromanba
noromanba / dropbox-selectlink.js
Last active April 18, 2017 23:46
select links on dropbox.com
@noromanba
noromanba / isnotoserif.user.js
Last active April 6, 2017 16:28
[DONE] fix "NotoSerif Subset OTF" wrong links; for UserScript
// ==UserScript==
// @name isNotoSerif!
// @namespace http://noromanba.flavors.me
// @description [DONE] fix "NotoSerif Subset OTF" wrong links; for UserScript
// @include https://www.google.com/get/noto/help/cjk/
// @grant none
// @noframes
// @run-at document-end
// @version 2017.4.6.0
// @homepage https://gist.github.com/noromanba/a479fa5bc3c4619383ee62f6af74c923