dgtlmoon / dgtlmoon/changedetection.io
[feature] Include xPath-to-CSS converter tool
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 2k
- Avg merge
- 23h 38m
- Merged PRs (30d)
- 67
Description

The 'remove element filter' also doesnt support xPath so its possible to switch your rules to CSS also
```
/**
* XPath to CSS
*
* Utility function for converting XPath expressions to CSS selectors
*
* Originally written in Python by [santiycr](https://github.com/santiycr) for
* [cssify](https://github.com/santiycr/cssify) and ported to JavaScript by
* [Dither](https://github.com/Dither). Converted to ES2015 and packaged as an npm module by
* [svenheden](https://github.com/svenheden)
*/
```
[xPathToCss.js.txt](https://github.com/dgtlmoon/changedetection.io/files/11116197/xPathToCss.js.txt)
Contributor guide
Research direction
Start by reviewing the attached xPathToCss.js.txt converter, then trace the existing remove element filter. Determine where XPath and CSS rules are handled and how the converter would fit; done means the remove element filter can support XPath input through CSS conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100