SSL Labs Refined

Improve SSL Labs

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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