您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add information about when the app was last updated to the product information.
// ==UserScript== // @name Last updated for App Store apps // @namespace https://github.com/fnurl/userscripts // @version 0.1.2 // @description Add information about when the app was last updated to the product information. // @author @fnurl // @match https://itunes.apple.com/* // @license MIT // ==/UserScript== (function() { 'use strict'; // wait until everything has loaded $(window).bind("load", function() { // add an additional wait as workaround for text disappearing when loading for the first time var timeout = 500; window.setTimeout(function() { // Localized labels var lang = { "sv": "Senaste", "en": "Latest", }; // Localized label string var updatedText; // Localization for defined presets var locale = $("html").attr("lang").match(".."); //var locale = window.location.pathname.match("/(.*?)/.*")[1]; if (lang.hasOwnProperty(locale)) { updatedText = lang[locale]; } else { // Localized update history string for other locales updatedText = $(".version-history__headline").text(); } // Info about the last version var lastVersion = $(".whats-new__latest").first(); var versionNumber = lastVersion.find('[class$="__latest__version"]').text(); var versionDate = lastVersion.find("time").attr("datetime"); // Product info element var productHeaderList = $("header .product-header__list").first(); // Prepare info about last version and add it to the product info var lastUpdatedListItem = '<li class="product-header__list__item">' + updatedText + ': ' + versionNumber + ' (' + versionDate + ')' + '</li>'; productHeaderList.append(lastUpdatedListItem); }, timeout); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址