See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // Only applied for "image-based timed text" (i.e. SVG-based, like Chinese, Japanese, ...) | |
| // For DFXP-based subtitles (e.g., English), try the hidden settings: https://www.netflix.com/SubtitlePreferences | |
| (() => { | |
| const installScaler = () => { | |
| const subRectElem = document.querySelector('rect.image-based-subtitles-rect'); | |
| if (subRectElem) { | |
| const subWrapperElem = subRectElem.parentNode; | |
| const MutationObserver = window.MutationObserver || window.WebKitMutationObserver; | |
| const config = {attributes: true, childList: true, characterData: true, }; |
| let cache = new Map(); | |
| let pending = new Map(); | |
| function fetchTextSync(url) { | |
| if (cache.has(url)) { | |
| return cache.get(url); | |
| } | |
| if (pending.has(url)) { | |
| throw pending.get(url); | |
| } |
| /* | |
| In JavaScript, objects can be used to serve various purposes. | |
| To maximise our usage of the type system, we should assign different types to our objects depending | |
| on the desired purpose. | |
| In this blog post I will clarify two common purposes for objects known as records and dictionaries | |
| (aka maps), and how they can both be used with regards to the type system. |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-runtime"] | |
| } |
| 'use strict'; | |
| class NotImplementedException extends Error { | |
| } | |
| class InvalidInitialization extends Error { | |
| } | |
| function abc(cls, options) { | |
| let iname = options ? options.interfaceName : 'Interface'; | |
| let metaData = { |
| /* | |
| * GM_download polyfill | |
| * | |
| * @description A polyfill to make your userscript supports GM_download | |
| * @author ccloli | |
| * @version 1.0 | |
| */ | |
| // to use this polyfill, you must add "@grant GM_xmlhttpRequest" at userscript metadata block |
| { echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <some.file)\r\n\r\n"; cat some.file; } | nc -l 8080 |
| // ==UserScript== | |
| // @name Bypass PTT Over-18 Checking | |
| // @description 自動跳過 PTT 的分級檢查 (請謹慎使用) | |
| // @namespace https://www.ptt.cc/bbs | |
| // @author Shao-Chung Chen | |
| // @license MIT (http://opensource.org/licenses/MIT) | |
| // @version 1.1.0 | |
| // @include http://www.ptt.cc/* | |
| // @include https://www.ptt.cc/* | |
| // |