Skip to content

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

@mleyen

Description

@mleyen

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions