Fixed bug in creating the 'previous posts' link and added mention to the beta version of this extension
diff --git a/_locales/ca/messages.json b/_locales/ca/messages.json
index 64ad764..0d952a6 100644
--- a/_locales/ca/messages.json
+++ b/_locales/ca/messages.json
@@ -3,6 +3,10 @@
"message": "Scroll infinit a TW",
"description": "The extension's name"
},
+ "appNameBeta": {
+ "message": "Scroll infinit a TW (beta)",
+ "description": "The extension's name for the beta version"
+ },
"appDescription": {
"message": "Fes scroll infinit i obtén altres millores als Fòrums de Google i la Consola de la Comunitat",
"description": "The extension's description"
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index ed227e3..decd633 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -3,6 +3,10 @@
"message": "Infinite Scroll in TW",
"description": "The extension's name"
},
+ "appNameBeta": {
+ "message": "Infinite Scroll in TW (beta)",
+ "description": "The extension's name for the beta version"
+ },
"appDescription": {
"message": "Get infinite Scroll and other enhancements in the Google Forums and the Community Console",
"description": "The extension's description"
diff --git a/_locales/es/messages.json b/_locales/es/messages.json
index a816b45..2e9b16f 100644
--- a/_locales/es/messages.json
+++ b/_locales/es/messages.json
@@ -3,6 +3,10 @@
"message": "Scroll infinito en TW",
"description": "The extension's name"
},
+ "appNameBeta": {
+ "message": "Scroll infinito en TW (beta)",
+ "description": "The extension's name for the beta version"
+ },
"appDescription": {
"message": "Haz scroll infinito y obtén otras mejoras en los Foros de Google y la Consola de la Comunidad",
"description": "The extension's description"
diff --git a/console_inject.js b/console_inject.js
index f8e5b44..5b772ed 100644
--- a/console_inject.js
+++ b/console_inject.js
@@ -52,9 +52,11 @@
if (options.history && ("parentNode" in node) && node.parentNode !== null && ("tagName" in node.parentNode) && node.parentNode.tagName == "EC-USER") {
var nameElement = node.querySelector(".name span");
if (nameElement !== null) {
- var name = encodeURIComponent(nameElement.innerText);
+ var name = nameElement.innerText;
+ var query = encodeURIComponent("(creator:\""+name+"\" | replier:\""+name+"\") -forum:0");
+ var urlpart = encodeURIComponent("query="+query);
var link = document.createElement("a");
- link.setAttribute("href", "https://support.google.com/s/community/search/query%3D%2528creator%253A%2522"+name+"%2522%2B%257C%2Breplier%253A%2522"+name+"%2522%2529%2B-forum%253A0");
+ link.setAttribute("href", "https://support.google.com/s/community/search/"+urlpart);
link.innerText = chrome.i18n.getMessage("inject_previousposts");
node.querySelector(".main-card").appendChild(document.createElement("br"));
node.querySelector(".main-card").appendChild(link);
diff --git a/manifest.json b/manifest.json
index d1ee5e0..f3d6c99 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_appName__",
- "version": "0.2.3",
+ "version": "0.3.1",
"description": "__MSG_appDescription__",
"icons": {
"512": "icons/512.png",