File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ export const addElement =
4040 for ( const entry of Object . entries ( attributes ) ) {
4141 // Some userscript managers do not support innerHTML
4242 // Stay do not support multiple classes: GM_addElement('div', {"class": "a b"}). Remove `|class` when it is supported
43- if ( / ^ ( o n \w + | i n n e r H T M L | c l a s s ) $ / . test ( entry [ 0 ] ) ) {
43+ // Stay do not support data-* attributes
44+ if ( / ^ ( o n \w + | i n n e r H T M L | c l a s s | d a t a - .+ ) $ / . test ( entry [ 0 ] ) ) {
4445 entries2 . push ( entry )
4546 } else {
4647 entries1 . push ( entry )
Original file line number Diff line number Diff line change 11{
22 "name" : " browser-extension-utils" ,
3- "version" : " 0.3.2 " ,
3+ "version" : " 0.3.3 " ,
44 "description" : " Utilities for developing browser extensions and userscripts" ,
55 "type" : " module" ,
66 "main" : " ./lib/index.ts" ,
You can’t perform that action at this time.
0 commit comments