Ferium add command for curseforge

2022/6/6 21:48:18

Pada tanggal 08 Juni 2022. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Ferium add command for curseforge
// @namespace   Violentmonkey Scripts
// @match       https://www.curseforge.com/minecraft/mc-mods/*
// @license     MIT
// @grant       none
// @version     0.1.2
// @author      -
// @description 2022/6/6 21:48:18
// ==/UserScript==


const elem = document.querySelector('div.-mx-1:nth-child(1)')
const id = document.querySelector("[data-project-id]").attributes["data-project-id"].textContent;
elem.innerHTML += `<div class="px-1">
  <a href="javascript:void(0)" 
     onclick='navigator.clipboard.writeText("ferium add ${id}");this.innerText="Copied!"' 
     class="button button--hollow" 
     data-tooltip="ferium add ${id}" 
     one-link-mark="yes">
    <span class="button__text">Ferium</span>
</a></div>`