rbricheno / firefox-remove-safelinks

A Firefox extension that removes Microsoft Safe Links if the target is a University of Cambridge site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable Microsoft Safe Links (Cambridge version)

This is a fork of https://github.com/wtimme/firefox-remove-safelinks

This version of the extension only removes safelinks for things that are related to the University of Cambridge.

A very basic, hardcoded, allowlist is used. Currently that list is:

  • *.cam.ac.uk
  • universityofcambridgecloud-my.sharepoint.com
  • uniofcam.saasiteu.com

You should use the original version instead if you want to automatically disable all safelinks.

Install this Cambridge version using the mozilla-signed XPI here:

https://github.com/rbricheno/firefox-remove-safelinks/blob/main/3022004557dc48658ba7-1.5.2.xpi

Intro

When enabled, "Microsoft Defender for Office 365" uses a feature called "Safe Link" to replace links in emails with URLs that go through Microsoft's servers. I consider this an invasion of my privacy.

The Firefox addon detects when you open a "Safe Link" and, instead of sending your data to Microsoft, it directly opens the original URL.

View on the 🦊 Firefox extension directory

How to test the addon

After cloning the repository, you can use the test-page.html file for testing the add-on. The page contains easy-to-follow steps on how to debug the redirects.

How to package the addon

  1. Install web-ext (see their GitHub README)
  2. From your checkout, run the following:
web-ext build --ignore-files \
  "icons/*.sh" \
  "icons/*.svg" \
  "test-page.html" \
  "CHANGELOG.md"

Source code checklist (Firefox addon review)

  • Did you use any build tools? No.
  • Does your package include source code for any private repositories or frameworks used in your add-on? All of the code is open source. It does not contain any frameworks.
  • Operation system used for the build: macOS 11.1
  • Details of any specific versions of tools or utilities needed: There are none. A simple text editor will suffice.
  • Links to any tools or utilities that need to be downloaded: n/a
  • Guidance for installing any downloaded tools and utilities, for example, links to online instructions: n/a
  • instructions for building your add-on code or details of any scripts provided: n/a
  • Does your package include your build script? I do not have a build script. The instructions on how to build are part of this README.

Attributions

The icon is taken from the Google Material Design iconset, and is used under the terms of the Creative Commons Attribution-ShareAlike license.

License

This addon is published under the Mozilla Public License, version 2.0.

About

A Firefox extension that removes Microsoft Safe Links if the target is a University of Cambridge site


Languages

Language:JavaScript 49.3%Language:HTML 46.8%Language:Shell 3.9%