Greasy Fork is available in English.
luogu 复制专栏源码
// ==UserScript==
// @name luogu-复制专栏源码
// @namespace http://tampermonkey.net/
// @version 1.1
// @description luogu 复制专栏源码
// @author JiaY19
// @match https://www.luogu.com/article/*
// @match https://www.luogu.com.cn/article/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=luogu.com.cn
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
const url = window.location.href;
async function clickBotton_blog() {
var x = document.querySelector("#lentille-context").text
var y = JSON.parse(x)
var z = y.data.article.content
navigator.clipboard.writeText(z);
};
if (url.includes("article")) {
document.onkeydown = function (e) {
if (e.keyCode == 67 && e.ctrlKey && e.altKey) {
clickBotton_blog();
alert("复制成功!");
}
}
}
// Your code here...
})();