From 65bef282c016c13b61b65fff21e995137ed2ecc9 Mon Sep 17 00:00:00 2001 From: Dennis Skinner Date: Thu, 18 Oct 2018 10:27:33 -0400 Subject: [PATCH] Add support for "imgres" URL and auto update. - Add updateURL tag so user scripts will auto update. - Add "imgres" url to support image viewing when not in image search. To reproduce, Google the word "Potato", click on the image to the right at the top of the quick view pane. Without this commit there is no "View Image" button. --- gis-vib.user.js | 5 ++++- manifest.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gis-vib.user.js b/gis-vib.user.js index 29ab2f0..c81ba0a 100644 --- a/gis-vib.user.js +++ b/gis-vib.user.js @@ -9,7 +9,9 @@ // @name:nl Google zoeken "Afbeelding bekijken" knop // @namespace https://github.com/devunt/make-gis-great-again // @icon https://raw.githubusercontent.com/devunt/make-gis-great-again/master/icons/icon.png -// @version 1.4 +// @updateURL https://raw.githubusercontent.com/devunt/make-gis-great-again/master/gis-vib.user.js +// @downloadURL https://raw.githubusercontent.com/devunt/make-gis-great-again/master/gis-vib.user.js +// @version 1.5 // @description This userscript adds "View Image" button to Google Image Search results. // @description:ru Этот скрипт добавляет кнопку "Показать в полном размере" к результатам Google Image Search. // @description:sl Ponovno prikaže gumb "Ogled slike" na Google Slikah. @@ -21,6 +23,7 @@ // @author Bae Junehyeon // @run-at document-end // @include http*://*.google.tld/search*tbm=isch* +// @include http*://*.google.tld/imgres* // ==/UserScript== const lang = { diff --git a/manifest.json b/manifest.json index 99ec10f..6fe5dc5 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Google Search \"View Image\" Button", "description": "Make view image button great again.", "homepage_url": "https://github.com/devunt/make-gis-great-again", - "version": "1.4", + "version": "1.5", "icons": { "48": "icons/icon.png", "96": "icons/icon@2x.png" @@ -211,7 +211,7 @@ "*://*.google.co.zm/*", "*://*.google.co.zw/*" ], - "include_globs": ["*tbm=isch*"], + "include_globs": ["*tbm=isch*", "*/imgres*"], "js": ["./gis-vib.user.js"] } ]