Skip to content

Commit

Permalink
Greatly improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverDecaf committed Aug 18, 2019
1 parent 096687e commit e2a38c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified Chromium Web Store.crx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var bodyObserver = new MutationObserver(function (mutations) {
return 'https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion='+chromeVersion+'&x=id%3D'+extensionId+'%26installsource%3Dondemand%26uc'
};
mutations.forEach(function (mutation) {
if (mutation.target.tagName == 'DIV' && mutation.attributeName == 'class') {
if (mutation.attributeName == 'class' && mutation.target.tagName == 'DIV' && (mutation.target.className == 'a-eb-mb-x' || mutation.target.hasAttribute('webstore-source'))) {
var xpathResult = document.evaluate( '//div[div[@aria-label="Available on Chrome"] or (@class="h-e-f-Ra-c e-f-oh-Md-zb-k" and not(node())) ]', document, null, XPathResult.ANY_TYPE, null);

var results = [];
Expand Down
2 changes: 1 addition & 1 deletion updates.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='ocaahdebbfolfmndjeplogmgcagdmblk'>
<updatecheck codebase='https://github.com/NeverDecaf/chromium-web-store/raw/master/Chromium%20Web%20Store.crx' version='0.2' />
<updatecheck codebase='https://github.com/NeverDecaf/chromium-web-store/releases/latest/download/Chromium.Web.Store.crx' version='0.2' />
</app>
</gupdate>

0 comments on commit e2a38c3

Please sign in to comment.