Skip to content

Instantly share code, notes, and snippets.

Dmitry Strelkov stk-dmitry

View GitHub Profile
View about:config.txt
Далее ищем эти значения и меняем на:
TRUE
dom.disable_window_open_feature.close
dom.disable_window_open_ feature.directories
dom.disable_window_open_feature.location
@stk-dmitry
stk-dmitry / cloudSettings
Last active Mar 14, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-03-14T09:50:28.415Z","extensionVersion":"v3.4.3"}
@stk-dmitry
stk-dmitry / vanila-scroll.js
Created Sep 5, 2017
vanila scroll js to section
View vanila-scroll.js
if ('querySelector' in document && 'addEventListener' in window && Array.prototype.forEach) {
const smoothScroll = (anchor, duration) => {
const startLocation = window.pageYOffset;
const endLocation = anchor.offsetTop;
const distance = endLocation - startLocation;
const increments = distance / (duration / 16);
let stopAnimation;
const animateScroll = () => {
window.scrollBy(0, increments);
View git-naming.txt
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing
View urlregexp.js
function regexpUrlParams(name) {
name = name.replace(/\[/, "\\\[").replace(/\]/, "\\\]");
const regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
const results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
You can’t perform that action at this time.