diff --git a/src/assets/images/snopes-icon.svg b/src/assets/images/snopes-icon.svg new file mode 100644 index 0000000..e668aca --- /dev/null +++ b/src/assets/images/snopes-icon.svg @@ -0,0 +1,75 @@ + + + + diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index f3fcfa0..cdf40b6 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -450,8 +450,12 @@ function redirect(url, type, initiator, forceRedirection) { for (let i = 0; i < GETArguments.length; i++) link += (i == 0 ? "?" : "&") + GETArguments[i][0] + "=" + GETArguments[i][1] return link } - default: + case "suds": { return `${randomInstance}${url.pathname}${url.search}` + } + default: { + return `${randomInstance}${url.pathname}${url.search}` + } } } @@ -572,6 +576,7 @@ const defaultInstances = { 'anonymousOverflow': ['https://code.whatever.social'], 'biblioReads': ['https://biblioreads.ml'], 'wikiless': ['https://wikiless.org'], + 'suds': ['https://sd.vern.cc'] } function initDefaults() { diff --git a/src/config.json b/src/config.json index 066b8cc..fcd2f79 100644 --- a/src/config.json +++ b/src/config.json @@ -580,6 +580,25 @@ "imageType": "svg", "embeddable": false, "url": "https://wikipedia.org" + }, + "snopes": { + "frontends": { + "suds": { + "name": "Suds", + "instanceList": true, + "url": "https://git.vern.cc/cobra/Suds" + } + }, + "targets": [ + "^https?:\\/{2}(www\\.)?snopes\\.com\\/" + ], + "name": "Snopes", + "options": { + "enabled": false + }, + "imageType": "svg", + "embeddable": false, + "url": "https://www.snopes.com" } } }