您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
NHK Web News - Copy Article text
// ==UserScript== // @name NHK Web copy // @namespace [email protected] // @include https://www3.nhk.or.jp/news/html/* // @include file://*NHK%20Online/* // @grant GM.setClipboard // @description NHK Web News - Copy Article text // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @license MIT // @version 1.0 // ==/UserScript== // 2023 06 30 v1.0 -- initial version $(document).focus(copy_nhk); function copy_nhk() { my_text = ' ' + document.querySelector('.content--title').innerText.trim() + '\r\n\r\n' + document.querySelector('.content--date').innerText.trim() + '\r\n\r\n' + document.querySelector('.content--detail-main').innerText.trim() + '\r\n\r\n'; my_text += '---\r\n\r\n'; GM.setClipboard(my_text); }