Skip to content

Instantly share code, notes, and snippets.

DenVdmj / background.js
Last active Jun 30, 2018
Enable brotli supporting for http requests. Chrome extension.
View background.js
chrome.webRequest.onBeforeSendHeaders.addListener(details => {
let headers = details.requestHeaders;
let header = headers.find(header => /accept-encoding/i.test(;
if (header) {
header.value = header.value.split(/\s*,\s*/).concat('br').join(', ');
return { requestHeaders: headers }
}, {
urls: ['*://*/*']
DenVdmj / ff.manifest.json
Last active Jun 30, 2018
Добавляет на каждую страницу Хабра кнопку перехода на и
View ff.manifest.json
"manifest_version": 2,
"name": " button",
"description": " button for",
"version": "",
"icons": {
"64": "sohabr.png"
"applications": {
"gecko": {
View way to draw bezier

I'm investigating the way to draw bezier curves / nurbs etc. with shaders, here is a list a links and information I found that can improve render times with OF. Any way I must admit I'm new to openGL & shaders so maybe someone can take this to implement maybe an add-on or maybe to added to the core.

Resolution Independent Curve Rendering using Programmable Graphics Hardware

Resolution independent GPU accelerated Curve & Font rendering GPU based Resolution Independent Font & Curve Rendering – initial Release

DenVdmj / index.html
Created Jun 13, 2018
RegExp Optimization (es6)
View index.html
<title>RegExp optimization</title>
<meta charset="utf-8" />
<h1>RegExp Optimization</h1>
<button create-regexp>Create RegExp from words list</button>
<textarea input>
a, abbr, acronym, address, applet, area,
View play-flac.js'flac player init start');
const copy = (el, props) => {
for (let [key, val] of Object.entries(props)) {
el[key] = val;
const audioElements = [];
DenVdmj / background.js
Created May 4, 2018 — forked from Rob--W/background.js
Implementation example of writable response bodies for Chromium extensions (API draft).
View background.js
* Implementation example of writable response bodies.
* Based on the draft of the Streams API (19 March 2014)
* Design document for response body reading/writing:
/* globals chrome, ByteStream, URL, XMLHttpRequest */
'use strict';
DenVdmj / jsfiddle.js
Last active Jun 21, 2018
Toggle left sidebar button for
View jsfiddle.js
const prefix = 'VdMj';
const class_hidden = `${prefix}-hidden-sidebar`;
const class_button = `${prefix}-menu-button`;
const styles = [
`body.${class_hidden} #sidebar { display: none !important }`,
`body.${class_hidden} #content { margin-left: 0 !important }`,
`#actions > nav > div:first-child > a.${class_button} {
font-size: 1.6em;
font-family: segoe ui symbol, apple color emoji, segoe ui emoji, notocoloremoji, android emoji, emojisymbols, emojione mozilla;
DenVdmj /
Last active Jun 27, 2018
Русский вариант обложки книги Джони Трайтел «Карманное руководство по написанию SVG»
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.