ungoogled-software / contrib

Community contributions for ungoogled-chromium
14 stars 10 forks source link

add visual patches to hide or tone down source-indicators for extensions #8

Closed kramred closed 3 years ago

kramred commented 3 years ago

Change or hide badges on the chrome://extensions/ page which show a source-indicator for e.g. "Unpacked extension", or "Not from Chrome Web Store."

See also https://github.com/Eloston/ungoogled-chromium/issues/1552

wchen342 commented 3 years ago

Maybe should also hide iron-icon too?

kramred commented 3 years ago

Maybe should also hide iron-icon too?

The hide-source-indicator-for-extensions.patch changes the style of #source-indicator to display: none - i.e. <div id="source-indicator"> and all its children are not displayed; <iron-icon> is a (grand-)child of that <div> – no need to hide it too.

<div id="icon-wrapper">
  <img id="icon" aria-describedby="a11yAssociation" alt="Extension Icon" src="…">
  <div id="source-indicator">
    <div class="source-icon-wrapper" role="img" aria-describedby="a11yAssociation" aria-label="Unpacked extension">
      <iron-icon></iron-icon>
    </div> <!-- .source-icon-wrapper -->
  </div> <!-- #source-indicator -->
  <dom-if style="display: none;"><template is="dom-if"></template></dom-if>
</div> <!-- #icon-wrapper -->
wchen342 commented 3 years ago

You are right, I didn't see the hierarchy there. Seems good then. Let's see whether @Eloston has anything to add.