SSL Labs Refined

Improve SSL Labs

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name SSL Labs Refined
// @description Improve SSL Labs
// @namespace https://franklinyu.github.io
// @version 0.2.0
// @include https://www.ssllabs.com/ssltest/analyze.html?*
// @grant none
// @inject-into content
// ==/UserScript==

HTMLCollection.prototype.filter = Array.prototype.filter

document.getElementsByClassName('serverKeyCert')
  .filter(e => e.innerText.trim() === 'Server Key and Certificate #1')
  .map(e => e.closest('table').querySelector('.greySmall'))
  .forEach(span => {
    const hash = span.innerText.match(/[0-9a-f]{64}/)[0]
    const anchor = document.createElement('a')
    anchor.href = 'https://crt.sh/?q=' + hash
    anchor.innerText = hash
    span.innerHTML = span.innerHTML.replace(hash, anchor.outerHTML)
  })