An open API service indexing awesome lists of open source software.

https://github.com/coldspirit0/web-utils


https://github.com/coldspirit0/web-utils

escape online regex regex-escape utils ya-ru ya-search-engine yandex-search-engine

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# web-utils

Repo for site: https://coldspirit0.github.io/web-utils/

## Utils
* [Text escape tool for regex](https://coldspirit0.github.io/web-utils/text-escape-tool.html)
* [Add ya.ru search engine](https://coldspirit0.github.io/web-utils/ya-search-engine/ya_search.html)

## Userscripts

### Xpath helper

**Install**: https://coldspirit0.github.io/web-utils/userscripts/xpath-helper.user.js

Replacement for the integrated $x() function in the browser. You can use CSS selectors and extended xpath selectors with class() function.

**Usage:**

> Note: you have to use backticks `` ` `` in the function and double quotes ` " ` as string delimiters.

```xpath
$x(`//*[class("some-class")]`)
// same as:
$x(`//*[contains(concat(" ", @class, " "), " some-class ")]`)
// or:
$x(`.some-class`)
```