Cody Raspien
Cody Raspien

Reputation: 1845

Custom Cursor - Google Chrome Extension

I created a Chrome extension and I need to change the cursor.

I have looked at this thread.

Basically, I need to put this CSS somewhere:

 cursor:url('chrome-extension:cursor.cur'),default;

Where does the above go? In the manifest?

Upvotes: 0

Views: 595

Answers (1)

Noam Hacker
Noam Hacker

Reputation: 4835

The manifest is where you declare what files you want to use in your content script, so you would put the file name of where that code is located, rather than the code itself. As the thread you linked shows, your manifest.json should have an entry like this:

"content_scripts": [
{
   "matches": ["http://*/*"],
   "css": ["css/style.css"],
   ...
}

and in your style.css, you may include any css code. It also may be helpful to look into the !important css property, as you are aiming to override css on a page.

Upvotes: 1

Related Questions