Skip to content

Commit 81437fb

Browse files
committed
Shortened styleNode to style, split long line to 2, removed semicolon, replaced .appendChild() w/ .append()`
1 parent 1f8db2f commit 81437fb

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

highlight-radio-bubbles/highlight-radio-bubbles.user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Highlight Radio Bubbles
3-
// @version 2025.10.19.1
3+
// @version 2025.10.19.2
44
// @author Adam Lui
55
// @namespace https://adamlui.com
66
// @description Makes radio bubbles bigger & more colorful when brought to focus.
@@ -22,7 +22,8 @@
2222

2323
(() => {
2424
'use strict'
25-
const styleNode = document.createElement('style')
26-
styleNode.innerHTML = 'input[type=radio]:focus { outline-color: red !important ; width: 25px !important ; height: 25px !important ; }'
27-
document.head.appendChild(styleNode)
25+
const style = document.createElement('style')
26+
style.innerHTML = `input[type=radio]:focus {
27+
outline-color: red !important ; width: 25px !important ; height: 25px !important }`
28+
document.head.append(style)
2829
})()

0 commit comments

Comments
 (0)