Skip to content

Commit

Permalink
Fixed perplexity.ai homepage button tooltips v-offset super rekt on h…
Browse files Browse the repository at this point in the history
…omepage when logged out ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Dec 10, 2024
1 parent 4c0553b commit 38e4cbb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
iniRoffset - tooltipDiv.getBoundingClientRect().width /2 }px`
tooltipDiv.style.bottom = ( // y-pos
env.site == 'perplexity' ? ( location.pathname != '/' ? '58px' :
( !document.querySelector(sites.perplexity.selectors.btns.login) ? 'revert-layer' : '52.5vh' ))
( document.querySelector(sites.perplexity.selectors.btns.settings) ? 'revert-layer' : '50.5vh' ))
: '50px' )
}
}
Expand Down
2 changes: 1 addition & 1 deletion chrome/extension/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ chrome.runtime.onMessage.addListener(async req => {

// Init APP data
const app = {
version: chrome.runtime.getManifest().version, latestAssetCommitHash: '8d25884', urls: {},
version: chrome.runtime.getManifest().version, latestAssetCommitHash: '4c0553b', urls: {},
chatgptJSver: /v(\d+\.\d+\.\d+)/.exec(await (await fetch(chrome.runtime.getURL('lib/chatgpt.js'))).text())[1]
}
app.urls.assetHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.latestAssetCommitHash}`
Expand Down
2 changes: 1 addition & 1 deletion firefox/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ chrome.runtime.onMessage.addListener(async req => {

// Init APP data
const app = {
version: chrome.runtime.getManifest().version, latestAssetCommitHash: '8d25884', urls: {},
version: chrome.runtime.getManifest().version, latestAssetCommitHash: '4c0553b', urls: {},
chatgptJSver: /v(\d+\.\d+\.\d+)/.exec(await (await fetch(chrome.runtime.getURL('lib/chatgpt.js'))).text())[1]
}
app.urls.assetHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.latestAssetCommitHash}`
Expand Down
2 changes: 1 addition & 1 deletion firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
iniRoffset - tooltipDiv.getBoundingClientRect().width /2 }px`
tooltipDiv.style.bottom = ( // y-pos
env.site == 'perplexity' ? ( location.pathname != '/' ? '58px' :
( !document.querySelector(sites.perplexity.selectors.btns.login) ? 'revert-layer' : '52.5vh' ))
( document.querySelector(sites.perplexity.selectors.btns.settings) ? 'revert-layer' : '50.5vh' ))
: '50px' )
}
}
Expand Down
6 changes: 3 additions & 3 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 Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.12.9.2
// @version 2024.12.9.3
// @license MIT
// @icon https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?9a393be
// @icon64 https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?9a393be
Expand Down Expand Up @@ -285,7 +285,7 @@
// Init APP data
const app = {
version: GM_info.script.version, configKeyPrefix: `${env.site} Widescreen`,
chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], urls: {}, latestAssetCommitHash: '8d25884'
chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], urls: {}, latestAssetCommitHash: '4c0553b'
}
app.urls.assetHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.latestAssetCommitHash}`
const remoteAppData = await new Promise(resolve => xhr({
Expand Down Expand Up @@ -781,7 +781,7 @@
iniRoffset - tooltipDiv.getBoundingClientRect().width /2 }px`
tooltipDiv.style.bottom = ( // y-pos
env.site == 'perplexity' ? ( location.pathname != '/' ? '58px' :
( !document.querySelector(sites.perplexity.selectors.btns.login) ? 'revert-layer' : '52.5vh' ))
( document.querySelector(sites.perplexity.selectors.btns.settings) ? 'revert-layer' : '50.5vh' ))
: '50px' )
}
}
Expand Down

0 comments on commit 38e4cbb

Please sign in to comment.