This file contains hidden or 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
['ajax', 'data-src', 'data-lazy-src', 'data-original', 'rel:bf_image_src'].forEach((attr) => { | |
var elms = document.querySelectorAll('*[' + attr.replace(/:/, '\\:') + ']'); | |
for (var i = 0; i < elms.length; i++) { | |
if (elms[i].nodeName !== 'IMG') { | |
let img = document.createElement('img'); | |
img.src = elms[i].getAttribute(attr); | |
img.style.cssText = 'max-width: 100%; max-height: 100%;'; | |
elms[i].appendChild(img); | |
} else { | |
elms[i].src = elms[i].getAttribute(attr); |
This file contains hidden or 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
@font-face { | |
font-family: "Verdana"; | |
src: local("Open Sans"); | |
unicode-range: U+0000-007F; | |
} | |
@font-face { | |
font-family: "Arial"; | |
src: local("Open Sans"); | |
unicode-range: U+0000-007F; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | |
<!-- | |
// ==UserScript== | |
// @name Context Google Image Search | |
// @description 右クリックメニューから画像検索 | |
// @version 1.0 | |
// @include main | |
// @compatibility Firefox 45 | |
// @author oflow |
This file contains hidden or 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
何なんだよ日本。 | |
UTF-8じゃねーのかよ。 | |
昨日見事に文字化けしたわ。 | |
どうすんだよdiff読めねーじゃねーか。 |
This file contains hidden or 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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
#main-window #urlbar-stop-button { | |
list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAOCAYAAAA8E3wEAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAASnSURBVHjabJR7SJV3GMc/77l7O+rxljrvtzlnGJabpTTTrLVR2h+LTf/xj4pcjJXBWsHmH2MjBsWgP5YwthqjVVpuJXnJLRFjRjoS2UqTvCXlMT1ez/Hc3r2/H+QI+sHL733hed7neb6XR1FVlRfn6eSs2vJzG6uOeSY8ozj9TmK8saiqkR1VO8nfnKPwiuNwONSuri4WFhaYm5vD7XYTGBiITqejrKyM9PT0tTzlRcHfW1rVPRffhVwoUt/j+Lo6TMsmvnvawM3AC/in4EjWMU4f/valor29veqJEyeIj48nJSWF8vJy/H4/nZ2djIyMMD8/T2VlJTU1NcpawatXm9TWpk527CyjI7OKW7iw9wUSNJ+Ab/NDdqdBSvOn3G9+zjt7CzlUe0gmd3d3qx0dHZSUlHDnzh28Xi/T09OyEZvNJp/Q0FD6+vrYvn07FRUVisFut6uXLl1mW2kJYWHr+D7FybD5NN9E1mFXHlKfuo/JM1WMzMyRtOE+7Tdbebtoi5qalERzczNbt27V8sKoq6tjaGiItrY2FEWhoKAAp9Mp4CYzM5P29nbWr1+v6oOCguoF3hGREZS+VcSoa5XdbdXc2tbKR+Ef0jDYz09/9lJmzeOJaxK9Qc/0s2kmJiYkT2KK3NxcXC4XDQ0N1NbWyu/h4WHE9GlpaZJXg8Eg4dWNPX6MNdRKkCGAhVELb1y28XHNjAbKFpgt4+CbafSWXafLPkS4OwKj0cj |
This file contains hidden or 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 typeOf(val) { | |
'use strict'; | |
return val === null ? 'null' : | |
val === undefined ? 'undefined' : | |
Array.isArray(val) ? 'array' : | |
Number.isNaN(val) ? 'NaN' : typeof val; | |
} | |
console.log(typeOf('')); // string | |
console.log(typeOf(null)); // null |
This file contains hidden or 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
/* 引用したやつ */ | |
.TweetAction--heart .Icon--heart { | |
background: none !important; | |
} | |
.TweetAction--heart .Icon--heart:before { | |
content: '🍣'; | |
font-size: 0.9em !important; | |
} | |
@-moz-document domain(twitter.com) { |
This file contains hidden or 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 Hoge() {} | |
Hoge.prototype.consoleThis = function() { | |
console.log(this); | |
} | |
Hoge.prototype.consoleThis2 = () => { | |
console.log(this); | |
} | |
var hoge = new Hoge(); | |
hoge.consoleThis(); // Hoge |
This file contains hidden or 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
@echo off | |
setlocal enabledelayedexpansion | |
set QAAC=D:\bin\qaac\qaac64.exe | |
rem --alac : Apple Lossless Audio Codec | |
set QAACOPT=--alac | |
set EXT=.m4a | |
for %%i in (%*) do ( | |
set input=%%i |
This file contains hidden or 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
@echo off | |
setlocal enabledelayedexpansion | |
rem set CLIPATH=C:\Program Files\Handbrake\HandBrakeCLI.exe | |
set CLIPATH=D:\bin\Handbrake\HandBrakeCLI.exe | |
set TSDIR=F:\ts | |
set MP4DIR=F:\ts\mp4 | |
set ENDDIR=F:\ts\encoded_ts | |
set C2A=D:\bin\Caption2Ass\Caption2Ass_PCR.exe | |
set C2AOPT=-format srt -srtornament -delay -300 |