#!/bin/bash echo "What is the domain (example: filmsbykris.com)?" read domain echo "What is the title of your extention?" read title if [ -d "$title" ] then echo "Folder already exists..." echo "Exiting..." exit 1 fi mkdir "$title" cd "$title" cat << EOF > manifest.json { "content_scripts": [ { "js": [ "jquery.min.js", "main.js" ], "matches": [ "*://domain/*"] } ], "description": "title", "manifest_version": 2, "name": "title", "version": "0.1" } EOF sed -i "s/title/$title/g" manifest.json sed -i "s/domain/$domain/g" manifest.json cat << EOF > main.js \$(document).ready(function(){ console.log("Script Running..."); }); EOF echo "Downloading jQuery..." wget -q "https://code.jquery.com/jquery-2.2.3.min.js" -O jquery.min.js echo "Complete..." echo "Good-Bye"