025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 06 Feb 2015 04:58 PM |
chrome.browserAction.onClicked.addListener(function(tab){ var id = prompt("Enter"); alert("Starting from " + id + "."); var notification = new Notification("Hi there!"); });
R$6,640 |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2015 05:02 PM |
| For one its RBX.lua only (go on another online forum or google it), second you are vague. |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 06 Feb 2015 05:03 PM |
For one it's not for only rbx.lua
"This is the place for discussion about scripting. Anything about scripting that is not a help request or topic belongs here."
R$6,640 |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2015 05:08 PM |
Well if you want to counteract me re-read and tell me that's not a help request. Unless of course, you are just posting it for fun.
Then you may say "Well, everyone else is asking for help", but not about Javascript. |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 06 Feb 2015 05:11 PM |
| Read this http://stackoverflow.com/help/how-to-ask |
|
|
| Report Abuse |
|
|
Rustage
|
  |
| Joined: 02 Feb 2015 |
| Total Posts: 947 |
|
|
| 06 Feb 2015 05:48 PM |
This thread makes me cringe. I hope it's a troll and that no programmer is as dumb as OP. |
|
|
| Report Abuse |
|
|
k9rosie
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 14339 |
|
|
| 06 Feb 2015 06:21 PM |
I replied to your other thread but I might as well reply to this one as well, considering that this one is newer.
use this for your manifest. change "click.js" to whatever the name of the javascript file is
{ "name": "extension", "version": "0.5", "description": "chrome extension", "manifest_version": 2, "permissions": ["notifications"], "background": { "scripts": ["click.js"], "persistent": false }, "browser_action": { "default_icon": "icon.png" } } |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 06 Feb 2015 07:09 PM |
@rust if working javascript makes you cringe that's kind of weird...
@k9 thanks I forgot to add the click.js to manifest
R$6,718 |
|
|
| Report Abuse |
|
|
| |
|