Updated Run JavaScript before change detection (markdown)

master
dgtlmoon 2022-07-10 21:51:29 +02:00
rodzic 17dca6c23c
commit bb4b7f3c32
1 zmienionych plików z 8 dodań i 1 usunięć

@ -10,7 +10,7 @@ Requires [Playwright driver enabled](https://github.com/dgtlmoon/changedetection
### Fill in the search box and click submit
At http://www.quotationspage.com/random.php ( or add this shared watch https://changedetection.io/share/qvQ8NFFxQsMa )
At http://www.quotationspage.com/random.php ( shared watch import link https://changedetection.io/share/qvQ8NFFxQsMa )
```
document.querySelector("input[name=homesearch]").value="cause and effect";
@ -30,3 +30,10 @@ document.querySelector("input[type=submit]").click();
document.querySelector("input[type=text]").value="stripes on a tiger never fade";
document.querySelector("input[value='Google Search']").click();
```
### Accept cookie alert info
https://edition.cnn.com ( shared watch import link https://changedetection.io/share/-ANRwLTBCNMa )
```
document.getElementById('onetrust-accept-btn-handler').click();
```