Skip to content

Commit

Permalink
chore(kayle): allow all intercept cdp
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 8, 2024
1 parent d7406cc commit ca15bd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kayle/lib/utils/cdp-blocking.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RunnerConf } from "../common";
import { CDPSession, _log } from "../config";
import { adEngine } from "./adblock";
import { blockedResourcePatterns, skippedResources } from "./resource-ignore";
import { skippedResources } from "./resource-ignore";

// CDP block list of domains to ignore resources
const blockedResourceUrls = Object.keys(skippedResources);
Expand Down Expand Up @@ -63,7 +63,7 @@ export const sendCDPPageConfigurationEnable = async (
urls: blockedResourceUrls,
}),
client.send("Fetch.enable", {
patterns: blockedResourcePatterns,
// patterns: blockedResourcePatterns,
}),
client.send("Page.enable"),
client.send("Preload.disable"),
Expand Down
2 changes: 2 additions & 0 deletions kayle/lib/utils/go-to-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const goToPage = async (
o: Partial<RunnerConfig & { html?: string }>
): Promise<boolean> => {
await setCDPIntercept(o);

const { page, timeout, waitUntil, origin } = o;

let valid = false;

try {
Expand Down
2 changes: 1 addition & 1 deletion kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kayle",
"version": "0.8.2",
"version": "0.8.3",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
Expand Down

0 comments on commit ca15bd1

Please sign in to comment.