about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/assets/images/snopes-icon.svg75
-rw-r--r--src/assets/javascripts/services.js7
-rw-r--r--src/config.json19
3 files changed, 100 insertions, 1 deletions
diff --git a/src/assets/images/snopes-icon.svg b/src/assets/images/snopes-icon.svg
new file mode 100644
index 00000000..e668aca9
--- /dev/null
+++ b/src/assets/images/snopes-icon.svg
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="123.47222mm"
+   height="123.47222mm"
+   viewBox="0 0 123.47222 123.47222"
+   version="1.1"
+   id="svg5"
+   xml:space="preserve"
+   inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
+   sodipodi:docname="snopes-icon.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:showpageshadow="2"
+     inkscape:pageopacity="0"
+     inkscape:pagecheckerboard="0"
+     inkscape:deskcolor="#d1d1d1"
+     inkscape:document-units="mm"
+     showgrid="false"
+     inkscape:zoom="0.70710678"
+     inkscape:cx="182.43355"
+     inkscape:cy="261.62951"
+     inkscape:window-width="1888"
+     inkscape:window-height="1060"
+     inkscape:window-x="32"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" /><defs
+     id="defs2"><linearGradient
+       inkscape:collect="always"
+       id="linearGradient939"><stop
+         style="stop-color:#fbfff5;stop-opacity:1;"
+         offset="0.8687005"
+         id="stop935" /><stop
+         style="stop-color:#ffffff;stop-opacity:0;"
+         offset="1"
+         id="stop937" /></linearGradient><radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient939"
+       id="radialGradient943"
+       cx="93.969383"
+       cy="149.13199"
+       fx="93.969383"
+       fy="149.13199"
+       r="12.139586"
+       gradientUnits="userSpaceOnUse" /></defs><g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-4.3063059,-93.635353)"><circle
+       style="fill:#fcd43f;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.55348;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.411765;paint-order:stroke fill markers;stop-color:#000000"
+       id="path5528"
+       cx="66.042419"
+       cy="155.37146"
+       r="61.736" /><path
+       id="path2997"
+       style="fill:#feea89;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 109.74268,135.95525 -30.193498,28.03136 -10.805014,52.85208 2.1518,0.0692 a 61.736,61.736 0 0 0 56.882302,-61.53629 61.736,61.736 0 0 0 -0.50126,-7.84087 z" /><circle
+       style="fill:url(#radialGradient943);fill-rule:evenodd;stroke-width:1.8476;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.411765;paint-order:stroke fill markers;stop-color:#000000;fill-opacity:1"
+       id="path356"
+       cx="93.969383"
+       cy="149.13199"
+       r="12.139586" /><path
+       style="fill:#060403;stroke:none;stroke-width:0.352778"
+       d="m 79.447971,164.54369 30.338889,-28.575 v 0 l -15.522222,-15.98334 -9.525,-0.0182 -13.405556,-12.45147 -17.345377,15.76695 c 0,0 2.629606,4.52963 3.587044,5.98332 v -4e-5 c -9.442097,-2.24903 -21.148851,-0.28328 -28.927777,5.60916 -10.090714,7.64329 -14.49264,23.19408 -6.385383,33.90195 7.110976,9.392 19.237783,12.52573 29.315938,17.55175 4.741686,2.36502 9.745486,4.89691 12.887678,9.3599 5.189361,7.37023 1.854553,16.07009 -4.773789,21.06613 v 0.35277 h 10.936111 c 1.237192,0 3.291417,0.38418 4.361392,-0.36265 1.865841,-1.30246 2.811286,-5.29626 3.240969,-7.39846 1.531408,-7.48912 0.323144,-15.99106 -4.84505,-21.87222 -8.175625,-9.3031 -20.769791,-11.92177 -31.332311,-17.45756 -5.104447,-2.67547 -10.399853,-6.17996 -11.754625,-12.17577 -1.650965,-7.30674 3.645429,-13.8684 9.990737,-16.69839 7.186083,-3.20498 22.923499,1.29152 22.923499,1.29152 l 1.942747,6.58742 z"
+       id="path302"
+       sodipodi:nodetypes="ccccccccccsccccscccccsccc" /></g></svg>
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index f3fcfa0d..cdf40b66 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 066b8cc0..fcd2f797 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"
 		}
 	}
 }