Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Conversation

@typicalninja
Copy link
Owner

@typicalninja typicalninja commented Jan 25, 2025

In a recent Google update, the ability to access search result pages without enabling JavaScript was disabled. (See #51 for more details.)

Using resources such as this Hacker News thread, I implemented a workaround that bypasses the JavaScript requirement by utilizing an alternate page version served to specific user agents.

However, this alternate page lacks certain features available on the standard page, resulting in the removal of some properties. Please refer to the changelog for a detailed list of changes.

Closes #51

The old version of google search has a different layout with different
things available, this reworks the interfaces to match those
Add the new fixes for google blocking non-js google queries
both google-sr and selectors have the dev script now, which will run
tsup with --watch option
the selector for a result block is consistent among all results, as such
it was extracted into a separate selector object
Fix the new google non-js block
this fixes the curreny convert search selector which were broken due to
google blocking non-js search requests
This patches the knowledge panel selectors to work with the old version
of google search
@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2025

🦋 Changeset detected

Latest commit: 22350dc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
google-sr Major
google-sr-selectors Major
google-that Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 25, 2025

npm i https://pkg.pr.new/google-sr@53
npm i https://pkg.pr.new/google-sr-selectors@53
npm i https://pkg.pr.new/google-that@53

commit: 22350dc

@typicalninja typicalninja changed the title refactor: fix google disabling access to search without js breaking the package refactor: bypass JavaScript requirement for Google search Jan 25, 2025
@typicalninja typicalninja merged commit f9d57ea into master Jan 25, 2025
8 checks passed
@typicalninja typicalninja deleted the non-js-patch branch January 26, 2025 03:28
@typicalninja typicalninja mentioned this pull request Sep 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] google.com blocks non-JavaScript requests

2 participants