This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My Extension", | |
| "version": "1.0.0", | |
| "description": "Description here", | |
| "manifest_version": 2, | |
| "permissions": ["webNavigation", "tabs"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
| ... | |
| "projects": { | |
| "chrome-extension-template": { | |
| ... | |
| "architect": { | |
| "build": { | |
| "builder": "@angular-devkit/build-angular:browser", | |
| "options": { | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.runtime.onInstalled.addListener(() => { | |
| chrome.webNavigation.onCompleted.addListener(() => { | |
| chrome.tabs.query({ active: true, currentWindow: true }, ([{ id }]) => { | |
| chrome.pageAction.show(id); | |
| }); | |
| }, { url: [{ urlMatches: 'https://github.com/' }] }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My Extension", | |
| "version": "1.0.0", | |
| "description": "Description here", | |
| "manifest_version": 2, | |
| "permissions": ["webNavigation", "tabs"], | |
| "page_action": { | |
| "default_popup": "index.html" | |
| }, | |
| "background": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
| ... | |
| "projects": { | |
| "chrome-extension-template": { | |
| ... | |
| "architect": { | |
| "build": { | |
| "builder": "@angular-builders/custom-webpack:browser", | |
| "options": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "./tsconfig.json", | |
| "compilerOptions": { | |
| "outDir": "./out-tsc/app", | |
| "types": ["chrome"] | |
| }, | |
| "files": [ | |
| "src/main.ts", | |
| "src/polyfills.ts", | |
| "src/background.ts", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('Hola desde ContentScript.ts!!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My Extension", | |
| "version": "1.0.0", | |
| "description": "Description here", | |
| "manifest_version": 2, | |
| "permissions": ["webNavigation", "tabs"], | |
| "page_action": { | |
| "default_popup": "index.html" | |
| }, | |
| "background": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ExtensionReloader = require('webpack-extension-reloader') | |
| const config = require('./custom-webpack.config'); | |
| module.exports = {...config, | |
| mode: 'development', | |
| plugins: [new ExtensionReloader({ | |
| reloadPage: true, | |
| entries: { | |
| background: 'background', | |
| contentScript: 'contentScript' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
| ... | |
| "projects": { | |
| "chrome-extension-template": { | |
| ... | |
| "architect": { | |
| "build": { | |
| "builder": "@angular-builders/custom-webpack:browser", | |
| "options": { |
OlderNewer