This repository was archived by the owner on Dec 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
refactor: bypass JavaScript requirement for Google search #53
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 detectedLatest commit: 22350dc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
commit: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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