Skip to content

Commit

Permalink
Update to Manifest v3 (and minor styling updates)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Nov 1, 2024
1 parent a714957 commit abe6f70
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
Binary file modified assets/icon-chrome-store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions copydocs/copydocs.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.copy-docs-widget {
color: #000;
background: #FAD542;
padding: 0.5rem 1rem 0.5rem 2.5rem;

Expand Down
2 changes: 1 addition & 1 deletion copydocs/copydocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if (copyDoc) {
var editStrip = document.createElement('div');
editStrip.className = 'copy-docs-widget';
editStrip.className = 'copy-docs-widget is-light';

var link = document.createElement('a');
Object.assign(link, {
Expand Down
Binary file modified copydocs/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified copydocs/icon256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 16 additions & 12 deletions copydocs/manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Ubuntu Copy Docs",
"short_name": "CopyDocs",

"version": "1.2.6",
"homepage_url": "https://github.com/canonical-webteam/ubuntu-copy-docs",

"version": "1.3.0",
"homepage_url": "https://github.com/canonical/ubuntu-copy-docs",
"description": "Shows a link to a copy doc on Ubuntu and Canonical websites.",

"icons": {
"128": "icon128.png",
"256": "icon256.png"
},

"content_scripts": [
{
"matches": [
Expand All @@ -37,13 +33,21 @@
"*://*.snapcraft.io/*",
"*://*.ubuntu.com/*",
"*://*.vanillaframework.io/*",

"*://*.demos.haus/*",
"*://*.run.demo.haus/*",
"*://localhost/*"
],
"css": ["copydocs.css"],
"js": ["copydocs.js"]
"css": [
"copydocs.css"
],
"js": [
"copydocs.js"
]
}
],
"browser_specific_settings": {
"gecko": {
"id": "{09386259-f6d3-4ccd-9a94-12f273322f03}"
}
]
}
}
}

0 comments on commit abe6f70

Please sign in to comment.