From bb4b7f3c32c87f764fa0a2655959b5af1ca18ddb Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 10 Jul 2022 21:51:29 +0200 Subject: [PATCH] Updated Run JavaScript before change detection (markdown) --- Run-JavaScript-before-change-detection.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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