Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu missing #251

Closed
SzVLsY opened this issue Sep 2, 2024 · 26 comments
Closed

menu missing #251

SzVLsY opened this issue Sep 2, 2024 · 26 comments
Labels
bug Something isn't working need more info

Comments

@SzVLsY
Copy link

SzVLsY commented Sep 2, 2024

image
@pionxzh
Copy link
Owner

pionxzh commented Sep 2, 2024

Can you help to open network panel in devtool, find backend-api/accounts/check/v4-2023-04-27 API request

And then copy the value of accounts.default.features

photo_2024-09-02_19-25-47

@pionxzh pionxzh added bug Something isn't working need more info labels Sep 2, 2024
@SzVLsY
Copy link
Author

SzVLsY commented Sep 2, 2024

Can you help to open network panel in devtool, find backend-api/accounts/check/v4-2023-04-27 API request

And then copy the value of accounts.default.features

photo_2024-09-02_19-25-47

Thank you. I have found the issue. Enabling Dark Reader causes the menu to disappear. Simply adding the domain to the whitelist and refreshing the page will restore everything to normal.
https://github.com/darkreader/darkreader
In Firefox, aside from Dark Reader, Privacy Badger also seems to cause the menu to disappear.

This is the value of accounts.default.features when Dark Reader is enabled.



[
  "arkose_enabled",
  "arkose_enabled_for_subscription",
  "beta_features",
  "bizmo_settings",
  "breeze_available",
  "browsing_available",
  "chart_serialization",
  "chat_preferences_available",
  "chatgpt_ios_attest",
  "chatgpt_team_plan",
  "code_interpreter_available",
  "d3_controls",
  "d3_editor",
  "d3_editor_gpts",
  "dalle_3",
  "gizmo_reviews",
  "gizmo_support_emails",
  "graphite",
  "invite_referral",
  "memory_ga",
  "mfa",
  "model_ab_use_v2",
  "model_switcher",
  "new_plugin_oauth_endpoint",
  "paragen_mainline_alternative",
  "plugins_available",
  "privacy_policy_nov_2023",
  "sentinel_enabled_for_subscription",
  "shareable_links",
  "starter_prompts",
  "sunshine_available",
  "user_settings_announcements"
]

@michaelskyba
Copy link
Contributor

My menu is also missing. I'm using a Chromium-based browser and without Dark Reader. My features list is exactly the same as SzVLsY's, though.

@pionxzh
Copy link
Owner

pionxzh commented Sep 3, 2024

Can anyone share a combination that can reproduce the issue? I tried these, all work correctly.

  • Windows 11, Chrome 127
  • Windows 11, Edge 128
  • Windows 11. Firefox 130 (With Privacy Badger)
    image

All tested with the dark reader on/off

btw, if you are using userscript manager other than Tampermonkey, please also let me know

@michaelskyba
Copy link
Contributor

michaelskyba commented Sep 3, 2024

I'm using Arch Linux 6.9.9-arch1-1 with Brave "1.68.141 Chromium: 127.0.6533.120 (Official Build) (64-bit)". I also have a different browser installed: base Chromium "126.0.6478.182 (Official Build) Arch Linux (64-bit)" installed.

For both of my two OpenAI accounts, the Export button does not show on Brave, and for both accounts, the Export button still shows on Chromium. In both cases, I'm only using Tampermonkey. Both Chromium and Brave had the same response for the v4-2023-04-27 request.

I could try doing some further debugging on my end, including trying Firefox and updating to the latest Chromium version, if I have time later

@pionxzh
Copy link
Owner

pionxzh commented Sep 3, 2024

I don't have Arch Linux environment, but I will be able to test it on Mac M-chip tomorrow.

And also maybe test it in private mode or disabling extensions?

@michaelskyba
Copy link
Contributor

In at least one of my Brave tests I had no extensions enabled besides Tampermonkey, so I don't think any others are interfering, but I could try private mode too later. Besides macOS, maybe also try testing Brave on Windows 11, in case that's the problem

@pionxzh
Copy link
Owner

pionxzh commented Sep 3, 2024

Hey, can you check this?
I think they are A/B testing the remix version.

image

source: https://twitter.com/btibor91/status/1828342132643332514

@michaelskyba
Copy link
Contributor

michaelskyba commented Sep 3, 2024

Both Brave and Chromium have <html data-build="remix-prod-(hash...) in the source for me. Both have the same hash, starting with b13f36.

However, I apologize, as I've realized that some of my previous comments were misleading. I did previously attempt to run the exporter script without any other extensions active, but I see now that Tampermonkey wasn't running correctly there, because that profile had Developer Mode off.

In my other profile, with more extensions, I did some tests and it looks like the Export button disappears when the Stylus extension is active, even if the injected stylesheet I configured doesn't apply to any elements on the page. I see this happening on both Brave and Chromium.

It still might be related to Remix because even with Stylus active, ChatGPT Exporter has been working fine up until a few days ago.

@rndwalker
Copy link

rndwalker commented Sep 4, 2024

Potential content-security-policy caused userscript injection issue?
Disclaimer: no CS training background, take with a grain of salt

In the response header:

content-security-policy: default-src 'self'; script-src 'self' 'nonce-5bc9734f-cdae-43db-a009-14e025c31fcf' 'wasm-unsafe-eval' chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/graphql https://chatgpt.com/public-api https://chatgpt.com/voice https://oaistatic.com https://snc.apps.openai.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ wss://*.chatgpt.com wss://*.chatgpt.com/; script-src-elem 'self' 'nonce-5bc9734f-cdae-43db-a009-14e025c31fcf' 'sha256-eMuh8xiwcX72rRYNAGENurQBAcH7kLlAUQcoOri3BIo=' auth0.openai.com challenges.cloudflare.com chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://apis.google.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/graphql https://chatgpt.com/public-api https://chatgpt.com/voice https://docs.google.com https://js.live.net/v7.2/OneDrive.js https://oaistatic.com https://snc.apps.openai.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ https://www-onepick-opensocial.googleusercontent.com wss://*.chatgpt.com wss://*.chatgpt.com/; img-src * 'self' blob: data: https: https://docs.google.com https://drive-thirdparty.googleusercontent.com https://ssl.gstatic.com; style-src 'self' 'unsafe-inline' chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/graphql https://chatgpt.com/public-api https://chatgpt.com/voice https://oaistatic.com https://snc.apps.openai.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ wss://*.chatgpt.com wss://*.chatgpt.com/; font-src 'self' data: https://*.oaistatic.com https://fonts.gstatic.com; connect-src 'self' *.oaiusercontent.com browser-intake-datadoghq.com chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://api.onedrive.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/graphql https://chatgpt.com/public-api https://chatgpt.com/voice https://content.googleapis.com https://docs.google.com https://events.statsigapi.net https://featuregates.org https://graph.microsoft.com https://oaistatic.com https://snc.apps.openai.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ https://www.googleapis.com statsigapi.net wss://*.chatgpt.com wss://*.chatgpt.com/ wss://*.webpubsub.azure.com; frame-src 'self' challenges.cloudflare.com https://*.sharepoint.com https://content.googleapis.com https://docs.google.com https://onedrive.live.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ js.stripe.com player.vimeo.com www.youtube.com; worker-src 'self' blob:; media-src blob: 'self' *.oaiusercontent.com https://cdn.openai.com https://persistent.oaistatic.com; frame-ancestors chrome-extension://iaiigpefkbhgjcmcmffmfkpmhemdhdnj; base-uri 'none'; report-to chatgpt-csp-new; report-uri https://browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pub1f79f8ac903a5872ae5f53026d20a77c&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=version%3Achatgpt-csp-new

Meanwhile, an error message that might be relevant here, which is also observed for other extensions (like the mentioned Dark Reader) at chatgpt.com:

Content-Security-Policy:由于违反了下列指令:“script-src-elem 'self' 'nonce-05296517-98d6-4ac4-995c-228e3fd199af' 'sha256-eMuh8xiwcX72rRYNAGENurQBAcH7kLlAUQcoOri3BIo=' https://auth0.openai.com https://challenges.cloudflare.com https://chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://apis.google.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/graphql https://chatgpt.com/public-api https://chatgpt.com/voice https://docs.google.com https://js.live.net/v7.2/OneDrive.js https://oaistatic.com https://snc.apps.openai.com https://tcr9i.chat.openai.com https://tcr9i.chatgpt.com/ https://www-onepick-opensocial.googleusercontent.com wss://*.chatgpt.com wss://*.chatgpt.com/”,此页面的内联脚本(script-src-elem)无法执行

My workaround that seems to work, though unstable and potentially dangerous, so do take with a grain of salt:

(using a header editor, response header > content-security-policy)
replace(/script-src-elem .*?;/g, "script-src-elem * data: mediastream: blob: filesystem: about: moz-extension: ws: wss: 'unsafe-eval' 'wasm-unsafe-eval' 'unsafe-inline';")

Environment is Firefox dev 131.0b1 + Tampermonkey 5.3.6208

@pionxzh
Copy link
Owner

pionxzh commented Sep 4, 2024

@michaelskyba Can you confirm that the script can work with only "Tampermonkey" running? Then put extensions back one by one.


I finally got the remix ab testing. But the script can run on it without any issues. 🤔
My version is remix-prod-df606eeef683e0700e0a3ff7549abd743a50f178.

I also tested with Stylus and other extensions.

@pionxzh
Copy link
Owner

pionxzh commented Sep 4, 2024

@pionxzh
Copy link
Owner

pionxzh commented Sep 4, 2024

@rndwalker But im curious, when did you start to notice that the export button disappeared?

@rndwalker
Copy link

rndwalker commented Sep 6, 2024

@rndwalker But im curious, when did you start to notice that the export button disappeared?

Quite recently around 2-3 days, I believe. Which makes me wonder, anyone happens to have past response headers from chatgpt.com for reference? It could be CSPs tightened just so recently.

(And I totally get the issue and potential fixes should be about the injection failure on the extension level. The Tampermonkey universally disabling all CSPs fix is so far more consistent than the header editor fix, but likely even more dangerous, so. Tests of successful injections after duplicating the chatgpt.com tab: No fix ~20%; header editor ~80%; disable CSP ~100%.)

@pionxzh
Copy link
Owner

pionxzh commented Sep 7, 2024

@rndwalker Not sure what's your enviroument, but I can successfully see my script on a brand new chrome profile with only Tampermonkey and this script. I do see other scripts triggered the CSP error on my PC after disabling the force remove CSP restricition options, but this chatgpt-exporter doesn't require that option to be enabled. So maybe you can try disable other scripts and test again?

@pionxzh
Copy link
Owner

pionxzh commented Sep 7, 2024

I assume everyone here seems hit on different walls to see the menu.

  1. CSP issues
  2. Tampermonkey not enabled / haven't follow the steps after updating to MF3
  3. The script itself do have issue in some scienrio

During the testing, I noticed that the menu will disappear if the screen is not big enough to see the left panel on page load. I will release a fix and try to enhance the menu injection to avoid any other scripts/extentions to corrupt the menu.

pionxzh added a commit that referenced this issue Sep 7, 2024
@pionxzh
Copy link
Owner

pionxzh commented Sep 7, 2024

I just released v2.24.5. Please help to see if it fixes the issue.

@pionxzh
Copy link
Owner

pionxzh commented Sep 8, 2024

Based on #252 (comment), I assume this issue has been fixed. I will close the issue. Let me know if you still cannot see the menu.

@pionxzh pionxzh closed this as completed Sep 8, 2024
@SzVLsY
Copy link
Author

SzVLsY commented Sep 9, 2024

I just released v2.24.5. Please help to see if it fixes the issue.

I tested the new version v2.24.6, and when I enable Dark Reader, the menu disappears again. Additionally, the menu also disappears when I enable some scripts. However I would say there is some improvement, as I no longer need to completely disable the extensions; I just need to add them to the whitelist. Thank you for your work.

@SzVLsY
Copy link
Author

SzVLsY commented Sep 9, 2024

Can anyone share a combination that can reproduce the issue? I tried these, all work correctly.

* Windows 11, Chrome 127

* Windows 11, Edge 128

* Windows 11. Firefox 130 (With `Privacy Badger`)
  ![image](https://private-user-images.git.ttaallkk.top/9910706/364039097-8ee8921d-a370-4e1d-8e08-0816c1ca5e16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4ODkxOTEsIm5iZiI6MTcyNTg4ODg5MSwicGF0aCI6Ii85OTEwNzA2LzM2NDAzOTA5Ny04ZWU4OTIxZC1hMzcwLTRlMWQtOGUwOC0wODE2YzFjYTVlMTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDlUMTMzNDUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWJhNDI1YTg5MjdjODlhNjI1OTkxMDU2YTQwOGRjZGEwOWY3NDg2YWZjYzFkOWExZWIzZTIyYTRhOGIyMmY0NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.op_bm-Rqw3LhwazWoWFT9IkGxEhwZkkbsRDZQIHZC-U)

All tested with the dark reader on/off

btw, if you are using userscript manager other than Tampermonkey, please also let me know

On Windows 10 with Chrome 129 and version 2.24.6, the menu disappears after enabling Dark Reader.

Sometimes, the menu works fine one day and suddenly disappears the next. When I tried installing the PR version I compiled, everything was fine the first night, but the menu disappeared again after a day. The browser extensions and scripts were not updated.

@pionxzh
Copy link
Owner

pionxzh commented Sep 9, 2024

when I enable Dark Reader, the menu disappears again

That's weird. I also tested it with Dark Reader, but it works totally fine.

I just need to add them to the whitelist

Can you elaborate more on what whitelist you changed?

@SzVLsY
Copy link
Author

SzVLsY commented Sep 10, 2024

when I enable Dark Reader, the menu disappears again

That's weird. I also tested it with Dark Reader, but it works totally fine.

I just need to add them to the whitelist

Can you elaborate more on what whitelist you changed?

image

@SzVLsY
Copy link
Author

SzVLsY commented Sep 11, 2024

when I enable Dark Reader, the menu disappears again

That's weird. I also tested it with Dark Reader, but it works totally fine.

I just need to add them to the whitelist

Can you elaborate more on what whitelist you changed?

Update:
Today, both versions completely stopped working. This is really strange—I simply refreshed the page, and then the menu disappeared. I've tried restarting the browser, and today I disabled all extensions and scripts except for the export script, but that didn't work.

@SzVLsY
Copy link
Author

SzVLsY commented Sep 11, 2024

when I enable Dark Reader, the menu disappears again

That's weird. I also tested it with Dark Reader, but it works totally fine.

I just need to add them to the whitelist

Can you elaborate more on what whitelist you changed?

Today, I noticed that when I refresh the page, the menu appears, and then when the page finishes loading, the menu disappears. Version 2.24.6.
When I reinstall version 2.24.4, the menu appears fixed in the top left corner, but when I refresh the page, the menu disappears. I have to resize the window again.

image

@pionxzh
Copy link
Owner

pionxzh commented Sep 12, 2024

Thanks for the verification. I'm trying to fix it in #258

@14790897
Copy link
Contributor

The Remix framework must be doing this. It constantly monitors the elements it manages, and if any changes are detected, it immediately reverts them back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info
Projects
None yet
Development

No branches or pull requests

5 participants