Skip to content

Improve PrestaShop detection#239

Merged
enthec-opensource merged 2 commits intoenthec:mainfrom
louisbels:improve-prestashop-detection
Mar 5, 2026
Merged

Improve PrestaShop detection#239
enthec-opensource merged 2 commits intoenthec:mainfrom
louisbels:improve-prestashop-detection

Conversation

@louisbels
Copy link
Contributor

Improve PrestaShop detection by adding new patterns that catch stores not exposing the generator meta tag or PrestaShop cookie.

Changes

  • dom: Add link[href*='/modules/ps_'] selector to detect native PrestaShop module CSS assets
  • scriptSrc: Add /modules/ps_[a-z]+/ pattern to detect native PrestaShop module scripts (e.g. ps_shoppingcart, ps_imageslider, ps_emailsubscription)

Why these patterns are reliable

  • /modules/ps_*: The ps_ prefix is PrestaShop's official naming convention for native modules. No other CMS or framework uses this /modules/ps_[name]/ URL structure.

Test websites:

  • https://www.magimix.fr — matches ps_imageslider, ps_shoppingcart, ps_searchbar, ps_shipup (no meta generator exposed)

@enthec-opensource
Copy link
Member

"scriptSrc": "/modules/ps_[a-z]+/" needs to be "scriptSrc": ["/modules/ps_[a-z]+/"]

@enthec-opensource enthec-opensource merged commit e6067f1 into enthec:main Mar 5, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants