Skip to content
Snippets Groups Projects
Unverified Commit fc583bdc authored by Jan's avatar Jan Committed by GitHub
Browse files

Update to new site version

Didn't work anymore for a seemingly updated site, so I checked and they changed the button class name
parent 6afc531d
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// @description Automatically clicks through all the buttons on all subsites of the GreaterGood ClickToGive program every two hours. // @description Automatically clicks through all the buttons on all subsites of the GreaterGood ClickToGive program every two hours.
// @description:de Klickt sich automatisch alle zwei Std. durch alle Buttons auf allen Seiten des GreaterGood-ClickToGive-Programms. // @description:de Klickt sich automatisch alle zwei Std. durch alle Buttons auf allen Seiten des GreaterGood-ClickToGive-Programms.
// @version 1.3.1 // @version 1.4.0
// @author Rsge // @author Rsge
// @copyright 2021+, Jan G. (Rsge) // @copyright 2021+, Jan G. (Rsge)
// @license Mozilla Public License 2.0 // @license Mozilla Public License 2.0
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
for (i = 0; i < divs.length; i++) { for (i = 0; i < divs.length; i++) {
var divClass = divs[i].className; var divClass = divs[i].className;
//console.log(divClass); //console.log(divClass);
if (divClass.includes("-site col-xs-3 col-sm-4 button-to-count") && if (divClass.includes("-site col-xs-4 button-to-count") &&
!divClass.includes("click-more-clickAttempted") && !divClass.includes("click-more-clickAttempted") &&
SITES.includes(divs[i].innerText)) { SITES.includes(divs[i].innerText)) {
var link = divs[i].firstElementChild.href; var link = divs[i].firstElementChild.href;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment