Skip to content

Commit

Permalink
update new css default code
Browse files Browse the repository at this point in the history
  • Loading branch information
quoid committed Dec 28, 2020
1 parent 406e767 commit 66afc16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/Userscripts Extension/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function validateURL(url) {

export function newScriptDefault(description, name, type) {
if (type === "css") {
return `/* ==UserStyle==\n@name ${name}\n@description ${description}\n==/UserStyle== */`;
return `/* ==UserStyle==\n@name ${name}\n@description ${description}\n@match *://*.*\n==/UserStyle== */`;
} else if (type === "js") {
return `// ==UserScript==\n// @name ${name}\n// @description ${description}\n// @match *://*.*\n// ==/UserScript==`;
}
Expand Down

0 comments on commit 66afc16

Please sign in to comment.