Skip to content

PLZ Support for leetcode.cn #672

@Suxyyyy

Description

@Suxyyyy

I am frustrated because the extension currently does not support the Chinese version of LeetCode (leetcode.cn). While it works perfectly on the global site (leetcode.com), many users in the Chinese community primarily use the .cn domain for local features and faster access. Currently, the extension does not recognize the page or activate its features when navigating to leetcode.cn.

Describe the solution you'd like I would like the extension to support leetcode.cn as a valid domain. Specifically:

Update the extension manifest to include permissions for ://.leetcode.cn/*.

Ensure that the content scripts and logic triggered on leetcode.com are also executed on leetcode.cn.

Add leetcode.cn to the options/permissions toggle list in the extension settings.

Describe alternatives you've considered I have tried manually enabling permissions through the browser's extension management page, but since the extension's internal logic is often hardcoded to check for .com URLs, the features still do not appear correctly on the Chinese site.

Additional context The UI of leetcode.cn is almost identical to the global version, so the existing selectors and logic should require minimal adjustment to work on the Chinese domain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions