harden-puppeteer icon indicating copy to clipboard operation
harden-puppeteer copied to clipboard

Newer pupeteer version support

Open janisblaus opened this issue 4 years ago • 14 comments

Hi,

Great work!

Is there a catch that prevents using this to newer versions of puppeteer?

janisblaus avatar Jul 15 '20 15:07 janisblaus

Not that I know of, I created it for use with Multilogin which is fixed on 2.1.0 but from what I can see it's pretty much the same concept for newer versions. They switched to TS though so the filenames and row numbers etc changed, but all you'd have to do is follow the same changes and then create a patch for your version with https://github.com/ds300/patch-package

prescience-data avatar Jul 26 '20 01:07 prescience-data

I just created this quick example for 5.2.1 (not tested however, and only modified the CommonJS folder)

https://github.com/prescience-data/harden-puppeteer/blob/master/patches/puppeteer%2B5.2.1.patch

prescience-data avatar Jul 26 '20 01:07 prescience-data

Thanks, will try to follow your example and create a pull request if I will manage to do this successfully. Cheers.

janisblaus avatar Jul 27 '20 07:07 janisblaus

What version do you need it for? Happy to add more versions.

Additionally, if you mirror the changes into a new version, you can test to check if it is working by running the Botcheck.isolatedWorld() test here: https://github.com/prescience-data/puppeteer-botcheck/blob/b6848845b8b5887608784caa2fe7a078db866e9b/Botcheck.js#L45

prescience-data avatar Jul 27 '20 10:07 prescience-data

Im always trying to go with those which has the best stability/feature ratio, at moment its 5.x. Thank you for publishing botchek repo, was thinking to do one as well, this will help me a lot. Will try to contribute some stuff to it as well.

janisblaus avatar Jul 28 '20 02:07 janisblaus

Hey @prescience-data it works like a charm! I owe you a beer! Or even a box of them considering how much I consume from your contributions to the stealth puppeteer lately.

janisblaus avatar Jul 29 '20 05:07 janisblaus

Would the patches made for 5.3 work for the current version of pupp?

pkmnmstr98 avatar Feb 08 '21 04:02 pkmnmstr98

The automatic one won't but what version are you targeting? I'll put up a version for it

prescience-data avatar Feb 08 '21 11:02 prescience-data

7.0.1 If you can 💯 !! Some of the files in 5.3.1 that you changed havent been updated in months

pkmnmstr98 avatar Feb 08 '21 14:02 pkmnmstr98

7.0.1 If you can 💯 !! Some of the files in 5.3.1 that you changed havent been updated in months

Added 💪

prescience-data avatar Feb 08 '21 22:02 prescience-data

Thank you !!!!!

pkmnmstr98 avatar Feb 08 '21 23:02 pkmnmstr98

Hey @prescience-data , great work! Can I ask for support to puppeteer version 19.6.2 ?

madagascar253 avatar Jan 31 '23 19:01 madagascar253

Hello, Are there any future plans to update the repository ?

GuyFawkesII avatar Jun 18 '23 10:06 GuyFawkesII

I made a patcher for puppeteer that make similar changes as harden-puppeteer, it runs all code in isolated context instead of the main world. You can find it here: https://github.com/rebrowser/rebrowser-patches Thanks to @prescience-data for the original version and inspiration.

nwebson avatar Aug 07 '24 18:08 nwebson