From 36c3f3d2ff80c1bc260bf8117262c713fa6c4a3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Thu, 7 Jul 2022 21:02:31 +0200
Subject: [PATCH] Create no-safelinks.

---
 no-safelinks/index.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 no-safelinks/index.js

diff --git a/no-safelinks/index.js b/no-safelinks/index.js
new file mode 100644
index 0000000..7dce427
--- /dev/null
+++ b/no-safelinks/index.js
@@ -0,0 +1,21 @@
+// ==UserScript==
+// @name        Un-safe Safelinks
+// @namespace   http://hugo.hornquist.se
+// @version     0.1
+// @author      hugo@lysator.liu.se
+// @match       *://*/*
+// @description Inputs the current date into the current text field.
+// @updateURL   https://git.lysator.liu.se/hugo/web-monkey-scripts/raw/master/no-safelinks/index.js
+// @downloadURL https://git.lysator.liu.se/hugo/web-monkey-scripts/raw/master/no-safelinks/index.js
+// @source      https://git.lysator.liu.se/hugo/web-monkey-scripts/-/tree/master/no-safelinks
+// ==/UserScript==
+
+(function() {
+	'use strict';
+	for (let el of document.getElementsByTagName('a')) {
+		let url = new URL(el.href);
+		if (url.href === 'https://eur01.safelinks.protection.outlook.com') {
+			a.href = url.searchParams.get('url')
+		}
+	}
+})();
-- 
GitLab