Migrating to workers, renaming service
This commit is contained in:
parent
850584ff36
commit
a6cd5f4266
29 changed files with 5542 additions and 611 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name" : "Match Audio",
|
||||
"name" : "Combine.fm",
|
||||
"version" : "0.3.1",
|
||||
"description" : "Match Audio makes sharing from music services better.",
|
||||
"description" : "Combine.fm makes sharing from music services better.",
|
||||
"background" : {
|
||||
"persistent": false,
|
||||
"scripts": [
|
||||
|
@ -20,7 +20,7 @@
|
|||
"48": "icon-48.png",
|
||||
"128": "icon-128.png"
|
||||
},
|
||||
"default_title": "Find matches for this music on Match Audio"
|
||||
"default_title": "Find matches for this music on Combine.fm"
|
||||
},
|
||||
"permissions" : [
|
||||
"declarativeContent",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const apiUrl = 'https://match.audio';
|
||||
const apiUrl = 'https://combine.fm';
|
||||
|
||||
chrome.runtime.onInstalled.addListener(() => {
|
||||
chrome.declarativeContent.onPageChanged.removeRules(undefined, () => {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
const apiUrl = 'https://match.audio';
|
||||
const apiUrl = 'https://combine.fm';
|
||||
|
||||
var button = document.createElement('button');
|
||||
button.className = 'share-button';
|
||||
button.setAttribute('aria-label', 'Share to Match Audio');
|
||||
button.setAttribute('aria-label', 'Share to Combine.fm');
|
||||
|
||||
var buttonContent = document.createElement('div');
|
||||
buttonContent.className = 'button-content';
|
||||
|
@ -23,14 +23,14 @@ waves.className = 'style-scope paper-ripple';
|
|||
paperRipple.appendChild(waves);
|
||||
|
||||
var img = document.createElement('img');
|
||||
img.src = 'https://match.audio/images/logo-128.png';
|
||||
img.src = 'https://combine.fm/images/logo-128.png';
|
||||
img.height = 48;
|
||||
buttonContent.appendChild(img)
|
||||
|
||||
var buttonLabel = document.createElement('div');
|
||||
buttonLabel.className = 'button-label';
|
||||
buttonLabel.setAttribute('aria-hidden', true);
|
||||
buttonLabel.innerText = 'Match Audio';
|
||||
buttonLabel.innerText = 'Combine.fm';
|
||||
buttonContent.appendChild(buttonLabel);
|
||||
|
||||
// select the target node
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const apiUrl = 'https://match.audio';
|
||||
const apiUrl = 'https://combine.fm';
|
||||
|
||||
function contextClick(e) {
|
||||
console.log(e);
|
||||
|
@ -29,7 +29,7 @@ window.addEventListener('click', contextClick);
|
|||
// const li = document.createElement('li');
|
||||
// ul.appendChild(li);
|
||||
// const a = document.createElement('a');
|
||||
// a.innerText = 'Open in Match Audio'
|
||||
// a.innerText = 'Open in Combine.fm'
|
||||
// a.href = apiUrl;
|
||||
// a.target = '_blank';
|
||||
// a.addEventListener('click', (e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue