Skip to content

Instantly share code, notes, and snippets.

const pw = require('playwright');
const UserAgent = require('user-agents');
const uuid = require('uuid');
const tmp = require('tmp-promise');
const UINT32_MAX = (2 ** 32) - 1;
const WEBGL_RENDERERS = ['ANGLE (NVIDIA Quadro 2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (NVIDIA Quadro K420 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro 2000M Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro K2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (ATI Radeon HD 3800 Series Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (AMD Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D
@leoossa
leoossa / scrollingInterval.js for Facebook Messenger - 2024 working
Last active February 13, 2024 10:36 — forked from ajitStephen/scrollingInterval.js
Facebook Messenger Auto Scroll Old Messages 2024
// Run this and watch dates you wanna reach
var scrollingInterval = setInterval(function () {
document.querySelector('div[data-pagelet="MWVMessageList"] div[role="row"]').parentNode.parentNode.scrollTop=0
}, 500);
// hit this, once you reach
clearInterval(scrollingInterval);
#include <iostream>
using namespace std;
// TypeValue is a type and a value at the same time.
// Each ID is a type, and there can be only one value of this type
// This prevents (only in runtime) construction of two vectors with the same Length variable, but of different actual lengths
template<int ID>
class TypeValue