SSL Labs Refined

Improve SSL Labs

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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)
  })