The window.addon = addon debugging tip is no longer needed as __addon will usually work in the console. This tip could be added in other places as well, such as addon API documentation
Missing best practices:
Avoiding mousemove and similar DOM events that trigger too often
When polluting a method, first check if other addons that do the same, and consider conflicts & race-conditions
Take advantage of addon.tab.scratchMsg() instead of creating our own strings, when appropriate
Unsure if it belongs in any page:
Generally, enabling a setting changes vanilla Scratch behavior, not the other way
#7376
addon.self.lib
no longer existsAddIt's going to get removedaddon.self.dynamicImport
import()
addon.tab.loadScript
now takes a relative URL instead of an absolute one. (Relative tochrome-extension://id/
, not to the current file)#7386
window.addon = addon
debugging tip is no longer needed as__addon
will usually work in the console. This tip could be added in other places as well, such as addon API documentationMissing best practices:
mousemove
and similar DOM events that trigger too oftenaddon.tab.scratchMsg()
instead of creating our own strings, when appropriateUnsure if it belongs in any page: