Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Alies Lapatsin lptn

🏠
Working from home
Block or report user

Report or block lptn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lptn
lptn / load_all.js
Created Jul 23, 2019
Click on all "Load diff" links on GitHub
View load_all.js
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
@lptn
lptn / readme.md
Last active Mar 11, 2019
Examples of real-life Laravel applications (OSS)
View readme.md
@lptn
lptn / gtmetrics-comparison-snippet.js
Last active May 3, 2018
GTMetrics comparison snippet
View gtmetrics-comparison-snippet.js
function returnRefinedURL(url) {
return url.replace(new RegExp("=\\w+"),"").replace("?&","?").replace("&&","&");
}
testsAndRequests = [];
document.querySelector('.report-waterfall').contentWindow.document.querySelectorAll('.vsc-initialized table .netTable').forEach((table, index) => {
table.querySelectorAll('.netFullHrefLabel.netHrefLabel.netLabel ').forEach((row, rowIndex) => {
if (rowIndex === 0) { testsAndRequests.push([]); }
testsAndRequests[index].push(row.textContent);
View courseAdInjector.js
/**
* @module modules/courseAdInjector
* @description Inject advertisement block to the document using specified rules
* @example courseAdInjector.addCourseAd('.js-courseAd-area');
*/
define(['jquery', 'modules/countdown'], ($, Countdown) => {
/**
* @returns {Object}
* @private
*/
You can’t perform that action at this time.