Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/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"
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)