Enhance Webflow page detection with multiple indicators#12
Merged
Conversation
Co-authored-by: KoblerS <[email protected]>
Copilot
AI
changed the title
[WIP] Not all webflow pages are detected
Enhance Webflow page detection with multiple indicators
Sep 9, 2025
KoblerS
approved these changes
Sep 9, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the Webflow site detection mechanism to be more robust by checking for multiple indicators instead of relying solely on CSS links. The enhancement addresses cases where valid Webflow sites may only have JavaScript files or meta generator tags without CSS links from the Webflow CDN.
Key changes:
- Adds detection for
<script>tags containing "website-files.com" - Adds detection for
<meta name="generator" content="Webflow">tags - Maintains backward compatibility with existing CSS link detection
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The current Webflow page detection logic only checks for
<link>tags containing "website-files.com", which misses many valid Webflow sites that may not have CSS links but still have JavaScript files from the CDN.This PR enhances the
check_url()function to use multiple detection methods:Before (single indicator):
After (multiple indicators):
Key improvements:
<script src="proxy.php?url=https%3A%2F%2Fcdn.prod.website-files.com%2F...%2Fjs%2Fwebflow.%2A.js">patterns<meta name="generator" content="Webflow">Test scenarios:
The enhanced detection makes the tool more robust by checking for any of the three Webflow indicators rather than requiring specific CSS links.
Fixes #11.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.