Skip to content

Commit

Permalink
minor details
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Oct 1, 2023
1 parent 191f457 commit e762095
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions WebExtension/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@

function imageSearch(request, elem) {
// TODO: Look if elem has a shadowDOM beneath it?
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dom/openOrClosedShadowRoot
// element.openOrClosedShadowRoot - The Element.openOrClosedShadowRoot read-only property represents the shadow root hosted by the element, regardless if its mode is open or closed (WebExtensions only - Firefox only)
// -> Combined: let shadowRoot = chrome.dom?.openOrClosedShadowRoot(element) || element.openOrClosedShadowRoot();
// BUT if just looking for *open* shadowRoots:
// element.shadowRoot

context.debug("imageSearch(): Looking for img elements on/below " + elem.nodeName.toLowerCase());

let candidate;
Expand Down
2 changes: 1 addition & 1 deletion WebExtension/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function populate(response) {
}

const orderedKeys = ["Headline", "Caption", "ObjectName", "Date", "Creditline", "Copyright", "UsageTerms", "LicenseURL",
"Creator", "CreatorAddress", "CreatorCity", "CreatorRegion", "CreatorPostalCode", "CreatorCountry", "CreatorPhoneNumbers", "CreatorEmails", "CreatorURLs",
"Creator", "CreatorAddress", "CreatorCity", "CreatorRegion", "CreatorPostalCode", "CreatorCountry", "CreatorPhoneNumbers", "CreatorEmails", "CreatorURLs", "DigitalSourceType",
"Make", "Model", "Lens", "FocalLengthText", "DigitalZoomRatio", "ApertureFNumber", "ExposureTime", "ISOequivalent", "FlashUsed", "WhiteBalance", "Distance",
"GPSLat", "GPSLon", "GPSAlt", "GPSImgDir", "CountryName", "ProvinceState", "City", "Sublocation" ];
const foundKeys = Object.keys(response.data);
Expand Down

0 comments on commit e762095

Please sign in to comment.