Skip to content
View depreuxd's full-sized avatar

Block or report depreuxd

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
depreuxd/README.md
  • 👋 Hi, I’m @depreuxd
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...
  • 😄 Pronouns: ...
  • ⚡ Fun fact: ...

/**

  • @license
  • Copyright 2024 Google Inc.
  • SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs';

const genJs = process.argv[2]; const genTypes = process.argv[3]; const inputTypes = process.argv[4];

let file = fs.readFileSync(genJs, 'utf-8');

file = file.replaceAll('proto: [],', ''); file = file.replaceAll('proto: null,', ''); file = file.replaceAll('proto: [],', '');

file = file.replaceAll('proto: []', ''); file = file.replaceAll('proto: null', ''); file = file.replaceAll('d2.proto = b2;', ''); file = file.replaceAll('proto: []', '');

file = file.replaceAll('fn = new Function(return ${functionValue})();', ''); file = file.replaceAll('new Function((${value}));', '// stripped'); file = file.replaceAll( return await this.evaluate(html => { document.open(); document.write(html); document.close(); }, content);, 'throw new Error("unsupported")', ); file = file.replaceAll('link.href = url;', 'throw new Error("unsupported")'); file = file.replaceAll('script.src = url;', 'throw new Error("unsupported")');

fs.writeFileSync(genJs, file);

fs.copyFileSync(inputTypes, genTypes);

file = fs.readFileSync(genTypes, 'utf-8');

file = file.replaceAll('#private;', '');

file = file.replaceAll( import { Session } from 'chromium-bidi/lib/cjs/protocol/protocol.js';, 'type Session = any;', ); file = file.replaceAll( import type { ParseSelector } from 'typed-query-selector/parser.js';, 'type ParseSelector = any;', );

file = file.replaceAll( export declare type SupportedWebDriverCapability = Exclude<Session.CapabilityRequest, 'unhandledPromptBehavior' | 'acceptInsecureCerts'>;, 'export declare type SupportedWebDriverCapability = any;', );

fs.writeFileSync(genTypes, file);

Popular repositories Loading

  1. puppeteer puppeteer Public

    Forked from puppeteer/puppeteer

    JavaScript API for Chrome and Firefox

    TypeScript

  2. libsignal-node libsignal-node Public

    Forked from ferhacks/libsignal-node

    Signal protocol implementation for Node.js

    JavaScript

  3. wppconnect wppconnect Public

    Forked from wppconnect-team/wppconnect

    WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any intera…

    TypeScript

  4. depreuxd depreuxd Public

    Config files for my GitHub profile.

  5. django-guardian django-guardian Public

    Forked from django-guardian/django-guardian

    Per object permissions for Django

    Python

  6. Awesome-Hacking Awesome-Hacking Public

    Forked from Hack-with-Github/Awesome-Hacking

    A collection of various awesome lists for hackers, pentesters and security researchers