Creating a Google Chrome Extension wildcard in manifest.json -
I am trying to create a Chrome extension that should be touched every 10 minutes. Here is my manifest.json file: "" "" "" "" "" "version": "0.1", "description": "Facebook every 10 minutes again Load. "," Content_scripts ": [[" *: //touch.facebook.com/* "]," js ": [" myscript.js "]," run_at ":" document_start "}]," permissions ": ["Http://touch.facebook.com/*", "https://touch.facebook.com/*", "tab"]}
I really only wanted Instead of "*: //touch.facebook.com/*" instead of "*: //touch.facebook.com/#! /home.php* "To refresh" Although I can not understand a way to create wildcards, work this way either "#!" Is there a problem with or with a security problem that allows the wildcard in chrome path
Any thoughts?
Thanks, b.
The problem is that they are not the actual page Facebook's content dynamically through javascript Loads, so when you switch between menus, the page really never reloads.
Just insert your content script on *: http://touch.facebook.com/*. > And then manually check the url hash before refreshing. Something like this:
if (window.location.hash.indexOf ("#! / Home") == 0) {// do refresh}
Comments
Post a Comment