Skip to content

Commit

Permalink
Merge branch 'user-js-only' of https://github.com/arandomuser/singpolyma
Browse files Browse the repository at this point in the history


* 'user-js-only' of https://github.com/arandomuser/singpolyma:
  Explicitly require userscripts to end with .user.js
  • Loading branch information
singpolyma committed Nov 5, 2012
2 parents beb1f09 + bba7401 commit e492537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uzbl/data/scripts/userscript.sh
Expand Up @@ -5,7 +5,7 @@ do_scripts() {
IFS="
"
# Loop over all userscripts in the directory
for SCRIPT in `grep -lx "\s*//\s*==UserScript==\s*" "$scripts_dir"/*`; do
for SCRIPT in `grep -lx "\s*//\s*==UserScript==\s*" "$scripts_dir"/*.user.js`; do
SCRIPT="`readlink -en "$SCRIPT"`"
# Extract metadata chunk
META="`sed -ne '/^\s*\/\/\s*==UserScript==\s*$/,/^\s*\/\/\s*==\/UserScript==\s*$/p' "$SCRIPT"`"
Expand Down

0 comments on commit e492537

Please sign in to comment.