Просмотр исходного кода

compatible with `@homepage` for installed scripts

Gerald 11 лет назад
Родитель
Сommit
0fd7251541
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      _locales/zh/messages.json
  2. 1 1
      manifest.json
  3. 1 1
      options.js

+ 1 - 1
_locales/zh/messages.json

@@ -216,7 +216,7 @@
 		"description": "Shown when custom @run-at is not assigned."
 	},
 	"labelHomepageURL": {
-		"message": "主页:",
+		"message": "主页地址:",
 		"description": "Label of script @homepageURL in custom meta data."
 	},
 	"labelUpdateURL": {

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 	"name": "Violent monkey",
-	"version" : "2.1.4.1",
+	"version" : "2.1.5",
 	"manifest_version" : 2,
 	"description" : "__MSG_extDescription__",
 	"developer": {"name" : "Gerald", "url" : "http://geraldl.ml"},

+ 1 - 1
options.js

@@ -32,7 +32,7 @@ function modifyItem(r){
 	if(a) a.disabled=r.updating;
 	a=d.querySelector('.name');
 	getName(a,n.custom.name||n.meta.name);
-	if(o=n.custom.homepageURL||n.meta.homepageURL) a.href=o;
+	if(o=n.custom.homepageURL||n.meta.homepageURL||n.meta.homepage) a.href=o;	// compatible with @homepage
 	getAuthor(d.querySelector('.author'),n.meta.author||'');
 	a=d.querySelector('.descrip');
 	getName(a,n.meta.description||'',' ');