From fa46e4bd3d97746378e7dba8ce5011b5cdc6f3e0 Mon Sep 17 00:00:00 2001 From: Masaabu Date: Fri, 6 Sep 2024 17:18:05 +0900 Subject: [PATCH 1/2] fix-feature-traps-paint-cant-get --- api/vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/vm.js b/api/vm.js index f587e948..413379e6 100644 --- a/api/vm.js +++ b/api/vm.js @@ -176,7 +176,7 @@ ScratchTools.Scratch.waitForContextMenu = function (info) { }; ScratchTools.Scratch.scratchPaint = function () { - var app = document.querySelector(".paint-editor_mode-selector_28iiQ"); + var app = document.querySelector(".paint-editor_mode-selector_28iiQ")||document.querySelector(".paint-editor_mode-selector_O2uhP"); if (app !== null) { return ( app[ From 97e6ce169a688d95c46aac36993967fd7a944c26 Mon Sep 17 00:00:00 2001 From: rgantzos <86856959+rgantzos@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:44:33 -0800 Subject: [PATCH 2/2] Update vm.js --- api/vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/vm.js b/api/vm.js index 413379e6..b5838473 100644 --- a/api/vm.js +++ b/api/vm.js @@ -176,7 +176,7 @@ ScratchTools.Scratch.waitForContextMenu = function (info) { }; ScratchTools.Scratch.scratchPaint = function () { - var app = document.querySelector(".paint-editor_mode-selector_28iiQ")||document.querySelector(".paint-editor_mode-selector_O2uhP"); + var app = document.querySelector(".paint-editor_mode-selector_28iiQ")||document.querySelector(".paint-editor_mode-selector_O2uhP")||document.querySelector("[class*='paint-editor_mode-selector_']"); if (app !== null) { return ( app[