Skip to content

Instantly share code, notes, and snippets.

@Kolobok12309
Kolobok12309 / nuxt.config.js
Last active September 1, 2022 11:24
Nuxtjs webcache fix
export default {
...
buildModules: [
[ // 1
'@nuxtjs/router',
{
path: 'configs',
keepDefaultRouter: true,
},
],
@Kolobok12309
Kolobok12309 / xss.html
Created February 8, 2021 08:12
Html file for test xss
<html>
<head></head>
<body>
<h4>
Xss file
</h4>
<script>
alert(document.cookie);
@Kolobok12309
Kolobok12309 / check-overflow.js
Last active September 28, 2020 09:49
Checker for overflowed elements on page
function styleReverter(elem, style, value) {
const valueBefore = elem.style[style];
elem.style[style] = value;
return () => {
elem.style[style] = valueBefore;
}
}
@Kolobok12309
Kolobok12309 / metro-ios.js
Last active January 26, 2021 20:29
Скрипт авторизации в московском метро, `completion` callback возврата ios commands
(async function() {
await new Promise((res) => {
if (document.readyState === 'complete') {
res();
} else {
const handler = () => {
res();
window.removeEventListener('load', handler);
};
@Kolobok12309
Kolobok12309 / detect_vue.js
Last active September 21, 2021 17:01
Helper for enabling vue devtools for production builds
// ==UserScript==
// @name VueEnableDevtools
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Add helper for enabling vue devtools for production builds
// @source https://gist.github.com/Kolobok12309/685d00c8e51dbd3e450909238836575d
// @author Kolobok12309
// @include *
// @grant unsafeWindow
// ==/UserScript==
@Kolobok12309
Kolobok12309 / cloudSettings
Last active December 13, 2021 07:02
VS Code config
{"lastUpload":"2021-12-13T07:02:01.851Z","extensionVersion":"v3.4.3"}
@Kolobok12309
Kolobok12309 / index.html
Created September 25, 2017 15:47
testcalc
<html>
</!DOCTYPE html>
<head>
<title>Calc</title>
$styles
</head>
<body>
<div id="result">test</div>
<div id="test"></div>
<form>