control-panel-for-twitter icon indicating copy to clipboard operation
control-panel-for-twitter copied to clipboard

Premium upsell after adding a bookmark

Open insin opened this issue 10 months ago • 1 comments

The Add to Folder link is a Premium upsell

image

insin avatar Apr 12 '24 23:04 insin

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

insin avatar Apr 20 '24 04:04 insin