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

Premium upsell after adding a bookmark #548

Open
insin opened this issue Apr 12, 2024 · 1 comment
Open

Premium upsell after adding a bookmark #548

insin opened this issue Apr 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@insin
Copy link
Owner

insin commented Apr 12, 2024

The Add to Folder link is a Premium upsell

image

@insin insin added the enhancement New feature or request label Apr 12, 2024
@insin
Copy link
Owner Author

insin commented Apr 20, 2024

This is a CSS-only way hide the Add to Folder link on desktop and mobile, but will also hide any similar link in a toast with the same markup - are there more of these?

div[data-testid="toast"] div[aria-hidden="true"]:has(> div[role="button"]) {
  display: none;
}

The alternative is to detect the appearance of toasts and check specifically for the "Add to Folder" button text.

  • desktop: appears as a child of #layers, which we're already observing
  • mobile: appears as a child of #layers > :first-child, which contains the other overlay items for the mobile layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant