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

Styles from previous page are retained until I reload (Instant inject mode) #1891

Closed
mleyen opened this issue Jan 17, 2025 · 0 comments
Closed
Labels

Comments

@mleyen
Copy link

mleyen commented Jan 17, 2025

Description

If I navigate to an URL in an open tab, the new URL will inherit styles from the previously opened page until I reload the page or navigate further on the same domain. This only seems to happen if "Instant inject mode" is enabled.

To reproduce:

  1. Make sure "Instant inject mode" is enabled in the settings
  2. Install the two styles below (font change on wikipedia.org, background color change on wiktionary.org)
  3. Go to https://en.wikipedia.org/wiki/Main_Page
  4. Click on the "Wiktionary" link under "Wikipedia's sister projects"
  5. The page should use styles from wikipedia.org instead of wiktionary.org (i.e. font change instead of background color change)
  6. Click the "back" button in the browser: Wikipedia will open with Wiktionary's styles

System Information

Screenshots, links, CSS

URLs on the domain: wikipedia.org

body {
    font-family: "Trebuchet MS", sans-serif !important;
}

URLs on the domain: wiktionary.org

body, .mw-page-container {
    background-color: magenta !important;
}
@mleyen mleyen added the bug label Jan 17, 2025
@tophf tophf closed this as completed in 7def10e Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant