JSON - Make popup navigate to Google -


i'm trying write chrome extension where, when clicked, drop down google. now, loads local .html file. here code have:

{ "manifest_version": 2,  "name": "thename", "description": "thedesc", "version": "1.0",  "browser_action": { "default_icon": "icon.png", "default_popup": "http://www.google.com", "default_title": "tooltip" }, "permissions": [ "activetab", "https://ajax.googleapis.com/" ] } 

i have 4 files in folder: icon.png, manifest.json, popup.html, & popup.js. using "getting started" tutorial https://developer.chrome.com/extensions/getstarted template, extremely new of (vb6 programmer years).

edit: got open webpage in little popup. now, need grab title of current tab's url, remove spaces it, trim down 30 characters max, assign string, navigate www.website.com/string. i'm thinking extension needs create new popup.html each time, taxing on server. perhaps can done straight extension? don't have clue. guessing @ point.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -