Skip to content

Instantly share code, notes, and snippets.

@galaczi
galaczi / index.cjs.js
Created November 30, 2022 16:11
Puppeteer extra plugin recaptcha + capsolver (needs /etc/hosts edit)
// The Puppeteer extra recaptcha plugin doesn't work with Capsolver out of the box, even though they support 2captcha API.
// While capsolver is working on a fix, some minor changes to node_modules/puppeteer-extra-plugin-recaptcha/dist/index.cjs.js makes them compatible.
// replace https with http to avoid tls issues
// use GET method
// add query string instead of writing to body
/*!
* puppeteer-extra-plugin-recaptcha v3.6.4 by berstend
* https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-recaptcha
* @license MIT
# NPM CheatSheet.
# Super easy intall: npm comes with node now.
# To create your own npm package: https://www.npmjs.org/doc/misc/npm-developers.html
# More: https://www.npmjs.org/doc/
# 1. NPM Command Lines.
# Local mode is the default.
# Use --global or -g on any command to operate in global mode instead.
@galaczi
galaczi / App.vue
Last active March 11, 2020 10:02
<template>
<div id="app">
<header>
<h1>Buy this</h1>
<div class="cart" ref="cart">Cart</div>
</header>
<main>
<div class="item">
<h2>Item01</h2>