diff --git a/Run-JavaScript-before-change-detection.md b/Run-JavaScript-before-change-detection.md index eb43b7c..636dd54 100644 --- a/Run-JavaScript-before-change-detection.md +++ b/Run-JavaScript-before-change-detection.md @@ -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(); +``` \ No newline at end of file