From 18082526f48afcef3fc574e1536ef282aa0cf5bd Mon Sep 17 00:00:00 2001 From: Imran Sobir Date: Mon, 24 Apr 2017 10:59:11 +0500 Subject: [PATCH] Show hostname in history page. --- qutebrowser/html/history.html | 7 +++++++ qutebrowser/javascript/history.js | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/qutebrowser/html/history.html b/qutebrowser/html/history.html index 35ac419be..955aefb19 100644 --- a/qutebrowser/html/history.html +++ b/qutebrowser/html/history.html @@ -47,6 +47,13 @@ table { text-align: center; } +.hostname { + color: #858585; + font-size: 0.9em; + margin-left: 10px; + text-decoration: none; +} + {% endblock %} {% block content %}

Browsing history

diff --git a/qutebrowser/javascript/history.js b/qutebrowser/javascript/history.js index a2448a14f..f46ceb49d 100644 --- a/qutebrowser/javascript/history.js +++ b/qutebrowser/javascript/history.js @@ -111,7 +111,11 @@ window.loadHistory = (function() { var link = document.createElement("a"); link.href = itemUrl; link.innerHTML = itemTitle; + var host = document.createElement("span"); + host.className = "hostname"; + host.innerHTML = link.hostname; title.appendChild(link); + title.appendChild(host); var time = document.createElement("td"); time.className = "time";