/* Additional CSS to target and remove download buttons from browser extensions */

/* Target specific IDs and classes that are commonly used by image downloader extensions */
#download-all-images-btn,
#download-all-images-button,
#download-all-btn,
.download-all-images-btn,
.download-all-btn,
.download-all-button,
button[aria-label*="download all"],
button[title*="download all"],
button[data-title*="download all"],
div[aria-label*="download all"],
div[title*="download all"],
div[data-title*="download all"],
button[class*="gallery-dl"],
div[class*="gallery-dl"],
button[aria-label*="gallery download"],
button[title*="gallery download"],
a[aria-label*="download all"],
a[title*="download all"],
[class*="img-download"],
[class*="imgdl"],
[class*="dlimg"],
[class*="dlbtn"],
button[style*="position: fixed"][style*="bottom:"][style*="right:"],
div[style*="position: fixed"][style*="bottom:"][style*="right:"],
a[style*="position: fixed"][style*="bottom:"][style*="right:"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  max-width: 0 !important;
  max-height: 0 !important;
}

/* Target green buttons that typically appear at the bottom right of the screen */
button.green-button[style*="position: fixed"],
button.download-button[style*="position: fixed"],
div.download-button[style*="position: fixed"],
a.download-button[style*="position: fixed"],
button.download-all-button,
.download-all-images-container,
.download-container {
  display: none !important;
  visibility: hidden !important;
}

/* Add !important to all properties to ensure they override extension styles */
* button:has(span:contains("Download All")),
* div:has(span:contains("Download All")),
* a:has(span:contains("Download All")) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
} 