From 5b5778843fda034b93b77f0fe5f8b99fadfcf352 Mon Sep 17 00:00:00 2001 From: toni Date: Sat, 6 Feb 2016 14:02:41 +0100 Subject: [PATCH] Add permalink to post date --- chrome-extension/modules/mvn.module.posts.js | 5 +++++ chrome-extension/mv-front.css | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/chrome-extension/modules/mvn.module.posts.js b/chrome-extension/modules/mvn.module.posts.js index 366b177..f091241 100644 --- a/chrome-extension/modules/mvn.module.posts.js +++ b/chrome-extension/modules/mvn.module.posts.js @@ -42,6 +42,11 @@ var thread_url = ($(".headlink").length)? $(".headlink").attr("href") : windo for (i = 0; i <= posts.length - 1; i++){ _posts[posts[i].id.substring(4)] = posts[i]; $("#post"+posts[i].id.substring(4)).addClass("mvn-post"); + + //Add permalink to post date + var date=$("#post"+posts[i].id.substring(4)+" > div.msg > div.info > span:nth-child(2)"); + date.replaceWith("" + date.text() + ""); + } //Get current page already loaded and last page to load diff --git a/chrome-extension/mv-front.css b/chrome-extension/mv-front.css index 9b69e03..21ab3b8 100644 --- a/chrome-extension/mv-front.css +++ b/chrome-extension/mv-front.css @@ -1241,4 +1241,21 @@ img.mfp-img { /* animate out */ .my-mfp-slide-bottom.mfp-removing.mfp-bg { opacity: 0; +} + +/* Date style */ +a#mv-date { + background: transparent!important; + font-style: normal; + font-size: 12px; + font-weight: 400; + color:#626262; +} + +.MVN-oscuro a#mv-date { + background: transparent!important; + font-style: normal; + font-size: 12px; + font-weight: 400; + color:#b4c9d3; } \ No newline at end of file