From 2da4a8708c93740f16a4fbc5b6978b06b4d54538 Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Sat, 11 Mar 2017 12:41:38 +0330 Subject: [PATCH] Supporting tooltip; https://github.com/schomery/stylish-chrome/issues/38#issuecomment-285350914 --- localization.js | 4 ++++ popup.html | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/localization.js b/localization.js index f30f814c..934d9bef 100644 --- a/localization.js +++ b/localization.js @@ -53,6 +53,10 @@ function tNodeList(nodes) { case "text": node.insertBefore(document.createTextNode(value), node.firstChild); break; + case "tooltip": { + node.setAttribute('title', value); + break; + } case "html": node.insertAdjacentHTML("afterbegin", value); break; diff --git a/popup.html b/popup.html index 30e3ddde..5729ac0b 100644 --- a/popup.html +++ b/popup.html @@ -14,16 +14,16 @@
- - - - - - - - - - + + + + + + + + + +