Udemy Course Creation Date

This script adds udemy course creation date of course to last updated panel.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Udemy Course Creation Date
// @namespace   Violentmonkey Scripts
// @match       https://www.udemy.com/course/*
// @grant       none
// @version     1.3
// @license     MIT
// @author      ad3m
// @description This script adds udemy course creation date of course to last updated panel.
// ==/UserScript==

(async () => {
  const updated =
  document.querySelector('div[class^="last-updated-module-scss-module__"] span') ||
  document.querySelector('div[data-purpose="last-update-date"] > span');
  if (!updated) return;
  const slug = location.pathname.split('/')[2];
  const res = await fetch(`https://www.udemy.com/api-2.0/courses/${slug}/?fields[course]=created`);
  const data = await res.json();
  updated.textContent = `Created ${new Date(data.created).toLocaleDateString()} - ${updated.textContent}`;
})();