Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor regexes, remove header and footer includes based on config #16

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

pavelhusa
Copy link
Collaborator

Summary

This pull request includes several changes to the index.js file, primarily focusing on enhancing the handling of HTML includes and simplifying the configuration. The most important changes include adding new regex patterns for header and footer includes, implementing functions to remove specific includes.

Test plan

  • clone repo
  • choose eshop where are some custom codes or addons
  • add strings to removeFooterIncludes or removeHeaderIncludes to config.json - these scripts will be removed
  • run node index.js to test it out

@pavelhusa pavelhusa linked an issue Oct 8, 2024 that may be closed by this pull request
@pavelhusa pavelhusa self-assigned this Oct 8, 2024
@pavelhusa pavelhusa requested a review from pavelkunes October 8, 2024 08:18
@pavelhusa pavelhusa marked this pull request as draft October 8, 2024 08:19
@pavelhusa pavelhusa marked this pull request as ready for review October 9, 2024 22:00
config.json Outdated Show resolved Hide resolved
@pavelhusa pavelhusa merged commit 52f786a into main Oct 10, 2024
@pavelhusa pavelhusa deleted the 15-skip-existing-scripts branch November 4, 2024 09:08
@pavelhusa pavelhusa restored the 15-skip-existing-scripts branch November 4, 2024 09:08
@pavelhusa pavelhusa deleted the 15-skip-existing-scripts branch November 4, 2024 09:08
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.

Vynechání existujících skriptů
2 participants