Skip to content

Commit

Permalink
Shortened document.location.href to location.href ↞ [auto-sync fr…
Browse files Browse the repository at this point in the history
…om `adamlui/userscripts`]
  • Loading branch information
adamlui committed Sep 2, 2024
1 parent 3df488d commit a66cdf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greasemonkey/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Engeza izinhlobo zezimodi ze-Widescreen + Fullscreen ku-ChatGPT ukuze kube nokubonakala + ukuncitsha ukusukela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.8.30.1
// @version 2024.9.2
// @license MIT
// @compatible chrome
// @compatible firefox
Expand Down Expand Up @@ -260,7 +260,7 @@

(async () => { /* global newChatBtn, wideScreenBtn, fullWindowBtn, fullScreenBtn */

const site = new URL(document.location.href).hostname.split('.').slice(-2, -1)[0]
const site = new URL(location.href).hostname.split('.').slice(-2, -1)[0]

// Init CONFIG
const config = {
Expand Down

0 comments on commit a66cdf0

Please sign in to comment.