File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1
1
[
2
+ {
3
+ "version" : 2 ,
4
+ "id" : " remove-confirmation" ,
5
+ "versionAdded" : " v4.0.0"
6
+ },
2
7
{
3
8
"version" : 2 ,
4
9
"id" : " outline-shape-options" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "title" : " Remove Delete Confirmation" ,
3
+ "description" : " Removes the delete confirmation prompt when deleting sprites in the Scratch editor." ,
4
+ "credits" : [
5
+ { "username" : " MaterArc" , "url" : " https://scratch.mit.edu/users/MaterArc/" }
6
+ ],
7
+ "type" : [" Editor" ],
8
+ "tags" : [" New" , " Featured" ],
9
+ "dynamic" : true ,
10
+ "styles" : [{ "file" : " style.css" , "runOn" : " /editor/*" }],
11
+ "scripts" : [{ "file" : " script.js" , "runOn" : " /editor/*" }]
12
+ }
13
+
Original file line number Diff line number Diff line change
1
+ export default async function ( { feature, console } ) {
2
+ ScratchTools . waitForElements ( "body" , ( ) => {
3
+ document . body . addEventListener ( "click" , ( ) => {
4
+ ScratchTools . waitForElements (
5
+ "[class^='delete-confirmation-prompt_ok-button_']" ,
6
+ ( confirmButton ) => {
7
+ if ( feature . self . enabled ) confirmButton . click ( ) ;
8
+ }
9
+ ) ;
10
+ } ) ;
11
+ } ) ;
12
+ }
Original file line number Diff line number Diff line change
1
+ [class *= "delete-confirmation-prompt_modal-container" ] {
2
+ visibility : hidden;
3
+ }
4
+
You can’t perform that action at this time.
0 commit comments