make a general template to a chrome extension.
- User
make a general template to a chrome extension.
- Assistant
Here's a template for a basic Chrome extension:
manifest.json:
json
{ "manifest_version": 2, "name": "Extension Name", "version": "1.0",
"browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" },
"permissions": [ "activeTab" ] }
icon.png:
python
(PNG image file with size of 128x128 pixels)
popup.html:
php
popup.js:
php
(empty file)
This template creates a basic Chrome extension with a browser action that opens a popup window when the extension icon is clicked. The popup displays a "Hello, World!" message. The manifest file specifies the extension name, version, icon, and popup file, and declares the "activeTab" permission, which allows the extension to access the currently active tab in the browser.
This template serves as a starting point, and you can modify the popup.html and popup.js files to add your own functionality to the extension.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →