开发者

Chrome Extension - Load popup whenever Facebook is visited?

开发者 https://www.devze.com 2023-02-19 20:18 出处:网络
I\'m just starting on a Chrome extension. I want it to load a popup elemen开发者_开发知识库t whenever the browser loads a Facebook url.

I'm just starting on a Chrome extension. I want it to load a popup elemen开发者_开发知识库t whenever the browser loads a Facebook url.

Is this possible? And how? // ANSWERED.


Okay, then.

Now, I now how to make an extension that drops down in a small window at the top right of the page beneath the extension icons. *But how can I create a new div anywhere on the web page, like this buzzgrowl extension:http://buzzgrowl.com/ *?


Yep it's possible. You can trigger a popup in your javascript. Set it to work only on facebook.com.

You can also do javascript checking of the url via window.location.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号