dgtlmoon / dgtlmoon/changedetection.io

[feature] Include xPath-to-CSS converter tool

Open
#1,507 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
34.1k
Forks
2k
Avg merge
23h 38m
Merged PRs (30d)
67

Description

![image](https://user-images.githubusercontent.com/275001/228967667-54c3505d-7b3d-488a-9b25-5a043eb2d71a.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.