diff --git a/package-lock.json b/package-lock.json
index 1d811300..2d47444c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "nightTab",
- "version": "4.40.4",
+ "version": "4.41.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index d6b9c36e..cc6b672f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nightTab",
- "version": "4.40.4",
+ "version": "4.41.0",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {
diff --git a/src/html/menu/menu-content/header.html b/src/html/menu/menu-content/header.html
index 0388d3ac..6a6fdebf 100644
--- a/src/html/menu/menu-content/header.html
+++ b/src/html/menu/menu-content/header.html
@@ -602,6 +602,11 @@
+
+
+
+
+
diff --git a/src/js/control.js b/src/js/control.js
index daf81f7a..acac8155 100644
--- a/src/js/control.js
+++ b/src/js/control.js
@@ -2192,6 +2192,31 @@ var control = (function() {
render.update.control.header();
render.update.control.menu();
}
+ }, {
+ element: ".control-header-search-newtab",
+ path: "header.search.newTab",
+ type: "checkbox",
+ func: function() {
+ header.render.item.clear();
+ header.render.item.all();
+ header.render.search.width.size();
+ greeting.render.clear();
+ greeting.render.all();
+ clock.render.clear();
+ clock.render.all();
+ transitional.render.clear();
+ transitional.render.all();
+ date.render.clear();
+ date.render.all();
+ render.class();
+ render.dependents();
+ render.update.control.header();
+ bind.control.header();
+ search.render.engine();
+ search.bind.input();
+ search.bind.clear();
+ dropdown.bind.editAdd();
+ }
}, {
element: ".control-header-search-newline",
path: "header.search.newLine",
@@ -6738,6 +6763,7 @@ var control = (function() {
".control-header-search-size-number",
".control-header-search-size-default",
".control-header-search-size-helper",
+ ".control-header-search-newtab",
".control-header-search-newline",
".control-header-search-newline-helper"
];
diff --git a/src/js/header.js b/src/js/header.js
index 6c638be3..774ed1f5 100644
--- a/src/js/header.js
+++ b/src/js/header.js
@@ -352,6 +352,10 @@ var header = (function() {
helper.addClass(searchInput, "input-clear");
};
+ if (state.get.current().header.search.newTab) {
+ form.setAttribute("target", "_blank");
+ };
+
return headerSearchBody;
},
editAdd: function() {
diff --git a/src/js/state.js b/src/js/state.js
index 9056c149..43fc7987 100644
--- a/src/js/state.js
+++ b/src/js/state.js
@@ -118,7 +118,8 @@ var state = (function() {
justify: "center"
},
size: 1,
- newLine: false
+ newLine: false,
+ newTab: false
},
editAdd: {
show: true,
diff --git a/src/js/update.js b/src/js/update.js
index 470b6e53..3e5cde76 100644
--- a/src/js/update.js
+++ b/src/js/update.js
@@ -861,6 +861,10 @@ var update = (function() {
delete data.state.group.area.alignment;
data.state.header.area.align = "center";
return data;
+ },
+ "4.41.0": function(data) {
+ data.state.header.search.newTab = false;
+ return data;
}
};
diff --git a/src/js/version.js b/src/js/version.js
index 8a5b233b..fa9ee8e2 100644
--- a/src/js/version.js
+++ b/src/js/version.js
@@ -1,6 +1,6 @@
var version = (function() {
- var current = "4.40.4";
+ var current = "4.41.0";
var name = "Naughty Goose";
diff --git a/src/manifest.json b/src/manifest.json
index fded4c81..c0d8dad0 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
- "version": "4.40.4",
+ "version": "4.41.0",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"