DeviantArt Eclipse - Extras

Redesign

当前为 2020-09-14 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         DeviantArt Eclipse - Extras
// @namespace    http://tampermonkey.net/
// @description  Redesign
// @author       Isi-Daddy
// @include      https://www.deviantart.com/*
// @include      https://www.deviantart.com/notifications/watch/*
// @exclude      https://www.deviantart.com/submit
// @exclude      https://www.deviantart.com/submit/*
// @exclude      https://www.deviantart.com/*/submit/*
// @exclude      https://www.deviantart.com/*/gallery/
// @version      1.1.3
// @grant        none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012

// ==/UserScript==

/* timestamp*/
waitForKeyElements (
    "time",
    klassentest
);

function klassentest (subj) {


     $("._3j4Pa").addClass("button");

    $(".button").css({
              "height" : "100px",
              "width" : "100px",
              "background" : "none"
          });

          var time = subj.attr("datetime").replace("T", " ").slice(0, -5);
          subj.append("<div class='time'>" + time + "</div>");
          subj.append("<div class='after'></div>");

          $(".time").css({
              "visibility" : "hidden",
              "position" : "absolute",
              "color" : "#d6ded4",
              "top": "-26px",
              "border": "1px solid #5c5c5c",
              "padding": "3px 10px",
              "margin-left": "-20px",
              "background" : "#475c4d"
          });

          $(".after").css({
              "visibility":"hidden",
              "width": "0",
              "height": "0",
              "border-left": "5px solid transparent",
              "border-right": "5px solid transparent",
              "border-top": "5px solid #475c4d",
              "position" : "absolute",
              "top": "-5px",
              "margin-left": "30px"
          });

          subj.mouseenter(function(event)
                          {
              event.stopPropagation()
              $(this).children().addClass("show");
              $(".time.show, .after.show").css({"visibility": "visible"});
          }).mouseleave(function(event)
                        {
              event.stopPropagation()
              $(this).children().removeClass("show");
              $(".time,.after").css({"visibility": "hidden"});
          });

}