db-gn 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,7 +57,8 @@ https://raw.githubusercontent.com/ltorl/dancing-bunny/refs/heads/main/index.html
57
57
  1. Open the raw HTML file
58
58
  2. Copy the source
59
59
  3. Paste into:
60
- *
60
+
61
+ * CodeTester
61
62
  * W3Schools Tryit
62
63
  * Code.org Web Lab
63
64
  * OneCompiler
package/datauri.txt ADDED
@@ -0,0 +1,3 @@
1
+ data://text/html;base64,PGJ1dHRvbiBvbmNsaWNrPSIoKCk9Pntkb2N1bWVudC5ib2R5LmlubmVySFRNTD0nPGlmcmFtZSBzcmM9JnF1b3Q7aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS9kYi1nbkBsYXRlc3QvaW5kZXguc3ZnJnF1b3Q7IHN0eWxlPSZxdW90O3dpZHRoOjEwMCU7aGVpZ2h0OjEwMCU7Ym9yZGVyOjAmcXVvdDs+PC9pZnJhbWU+J30pKCkiPkNsaWNrPC9idXR0b24+
2
+
3
+ this is a link btw ^^
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "db-gn",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "The BEST unblocked gaming website! 2000+ Games.",
5
5
  "main": "index.svg",
6
6
  "scripts": {
package/v2.html CHANGED
@@ -1669,7 +1669,6 @@
1669
1669
  closeAutoclickMenu();
1670
1670
  });
1671
1671
  window.addEventListener("resize", closeAutoclickMenu);
1672
- window.addEventListener("blur", closeAutoclickMenu);
1673
1672
 
1674
1673
  return menu;
1675
1674
  }
@@ -1796,8 +1795,10 @@
1796
1795
  text.className = "ac-all-label";
1797
1796
  text.textContent = label;
1798
1797
 
1799
- const allOn = clickers.length > 0 && clickers.every(c => c.enabled);
1800
- const sw = makeAutoclickSwitch(allOn, `Turn all ${label.toLowerCase()} ${allOn ? "off" : "on"}`, (on) => {
1798
+ // On as soon as anything in the group is on, so one click always
1799
+ // turns the whole group off rather than first switching it all on.
1800
+ const anyOn = clickers.some(c => c.enabled);
1801
+ const sw = makeAutoclickSwitch(anyOn, `Turn all ${label.toLowerCase()} ${anyOn ? "off" : "on"}`, (on) => {
1801
1802
  clickers.forEach(c => setClickerEnabled(c, on));
1802
1803
  renderAutoclickMenu();
1803
1804
  }, clickers.length === 0);