Git Product home page Git Product logo

Comments (5)

Osiris-Team avatar Osiris-Team commented on May 31, 2024

Just noticed that the functionality is only for the options menu.
It would be great to have a basic example that modifies a websites html, by default too.

from browser-extension-template.

Osiris-Team avatar Osiris-Team commented on May 31, 2024

I am trying to execute the content script when loading google.com, however, it doesn't want to.
Changes:

	"permissions": [
		"storage",
			"activeTab",
			"scripting"
	],
	"host_permissions": [
		"https://github.com/*"
	],
	"content_scripts": [
		{
			"matches": [ "https://google.com/*" ],
			"js": [ "content.js" ],
			"css": [ "content.css" ],
			"run_at": "document_end"
		}
	],
console.log('💈 Content script loaded for', chrome.runtime.getManifest().name);

What am I missing @fregante

from browser-extension-template.

fregante avatar fregante commented on May 31, 2024

I suggest asking on StackOverflow or other forums. I built an extension with the template yesterday and it works. The issue is unrelated to this template

from browser-extension-template.

Osiris-Team avatar Osiris-Team commented on May 31, 2024

@fregante Ok will do that. But could there be maybe a second branch of this repo which modifies the html of a page?

from browser-extension-template.

fregante avatar fregante commented on May 31, 2024

It already happens, there's a content script specific to a page on github. Refer to the manifest

from browser-extension-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.