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
class GithubReviewHelperUtils { | |
static sleep = (ms) => new Promise((res) => setTimeout(res, ms)); | |
static retry = async (fn, timesLimit = 100) => { | |
let counter = 0; | |
let res = null; | |
let success = false; | |
while (!success && counter < timesLimit) { | |
try { | |
res = await fn(); |
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
export default { | |
... | |
buildModules: [ | |
[ // 1 | |
'@nuxtjs/router', | |
{ | |
path: 'configs', | |
keepDefaultRouter: true, | |
}, | |
], |
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
<html> | |
<head></head> | |
<body> | |
<h4> | |
Xss file | |
</h4> | |
<script> | |
alert(document.cookie); |
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 styleReverter(elem, style, value) { | |
const valueBefore = elem.style[style]; | |
elem.style[style] = value; | |
return () => { | |
elem.style[style] = valueBefore; | |
} | |
} |
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
(async function() { | |
await new Promise((res) => { | |
if (document.readyState === 'complete') { | |
res(); | |
} else { | |
const handler = () => { | |
res(); | |
window.removeEventListener('load', handler); | |
}; |
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
// ==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== |
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
{"lastUpload":"2021-12-13T07:02:01.851Z","extensionVersion":"v3.4.3"} |
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
<html> | |
</!DOCTYPE html> | |
<head> | |
<title>Calc</title> | |
$styles | |
</head> | |
<body> | |
<div id="result">test</div> | |
<div id="test"></div> | |
<form> |