您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Ctrl + Shift + I -> go to console and copy the output
// ==UserScript== // @name Quizlet set copier // @namespace http://tampermonkey.net/ // @version 0.11 // @license MIT // @description Ctrl + Shift + I -> go to console and copy the output // @author You // @match https://quizlet.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=quizlet.com // @grant none // ==/UserScript== (function() { 'use strict'; let output = ""; const spanTermTexts = document.querySelectorAll("span.TermText"); if(spanTermTexts.length == 0) { console.log("No pairs were found. Please go to the main page of a quizlet set!"); return } const textArr = Array.prototype.slice.call(spanTermTexts).map(x => x.innerText); textArr.forEach((x, i) => { output += (i%2 == 0) ? `${x} : ` : `${x}\n`; }); console.log(output); })();