Skip to content

Commit

Permalink
Moved no-user-select to start of classlist in modals.init() to su…
Browse files Browse the repository at this point in the history
…pport future `$=-modal` CSS selectors ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Jan 2, 2025
1 parent fa2899b commit 5ac3af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greasemonkey/autoclear-chatgpt-history.user.js
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 2025.1.1.5
// @version 2025.1.2
// @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 @@ -500,7 +500,7 @@

init(modal) {
if (!this.styles) this.stylize() // to init/append stylesheet
modal.classList.add(this.class, 'no-user-select') ; modal.parentNode.classList.add(`${this.class}-bg`)
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
fillStarryBG(modal) // add starry bg
},

Expand Down

0 comments on commit 5ac3af7

Please sign in to comment.