Skip to content

Commit

Permalink
Removed no-longer used elem ID inits ↞ [auto-sync from https://github…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Nov 26, 2024
1 parent 8d0def5 commit 083c2c2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.11.26.2
// @version 2024.11.26.3
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand Down Expand Up @@ -683,17 +683,17 @@
create() {
sidebarToggle.div = document.createElement('div')

// Create/size/position navicon
// Create/ID/size/position navicon
const navicon = document.createElement('img') ; navicon.id = 'autoclear-toggle-navicon'
navicon.style.cssText = 'width: 1.25rem ; height: 1.25rem ; margin-left: 2px ; margin-right: 4px'

// Create/ID/disable/hide/update checkbox
// Create/disable/hide checkbox
const toggleInput = document.createElement('input')
Object.assign(toggleInput, { id: 'autoclear-toggle-input', type: 'checkbox', disabled: true })
Object.assign(toggleInput, { type: 'checkbox', disabled: true })
toggleInput.style.display = 'none'

// Create/ID/stylize switch
const switchSpan = document.createElement('span') ; switchSpan.id = 'autoclear-switch-span'
// Create/stylize switch
const switchSpan = document.createElement('span')
Object.assign(switchSpan.style, {
position: 'relative', left: `${ env.browser.isMobile ? 169 : !ui.firstLink ? 160 : 154 }px`,
backgroundColor: toggleInput.checked ? '#ccc' : '#AD68FF', // init opposite final color
Expand All @@ -712,7 +712,7 @@
}) ; switchSpan.append(knobSpan)

// Create/stylize/fill label
const toggleLabel = document.createElement('label') ; toggleLabel.id = 'autoclear-toggle-label'
const toggleLabel = document.createElement('label')
if (!ui.firstLink) // add font size/weight since no ui.firstLink to borrow from
toggleLabel.style.cssText = 'font-size: 0.875rem, font-weight: 600'
Object.assign(toggleLabel.style, {
Expand Down

0 comments on commit 083c2c2

Please sign in to comment.