您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ココナラユーザーページのステータス欄に最終ログイン時刻を追記します。
// ==UserScript== // @name ココナラ最終ログイン絶対時刻化 // @namespace https://coconala.com/ // @version 0.1 // @description ココナラユーザーページのステータス欄に最終ログイン時刻を追記します。 // @author 4y4m3 // @match https://coconala.com/users/* // @icon https://www.google.com/s2/favicons?domain=coconala.com // @grant none // @license MIT // @run-at document-idle // ==/UserScript== (function() { 'use strict'; function displayLastLogin() { // 最終ログインのタイムスタンプを取得 const lastLoginTimestamp = window.__NUXT__?.state?.pages?.users?.user?.lastLoginedAt; // HTML要素を取得 const targetElement = document.querySelector('div.c-userStatus'); // タイムスタンプと対象要素が両方存在する場合のみ処理を実行 if (lastLoginTimestamp && targetElement) { // タイムスタンプ(秒)をミリ秒に変換してDateオブジェクトを作成 const dateObject = new Date(lastLoginTimestamp * 1000); // Dateオブジェクトを日付/時刻文字列に変換 const formattedDateTime = dateObject.toLocaleString(); // 対象要素のテキスト内容に、取得した時刻を追記 targetElement.innerHTML += `${formattedDateTime}`; } } // 遅延実行 setTimeout(displayLastLogin, 100); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址