(function(){
var iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.body.appendChild(iframe);
console = iframe.contentWindow.console;
window.console = console;
console.clear()
const options = Array.from(document.querySelectorAll('.question-option label.el-radio .el-radio__label .option')).map(ele=>ele.innerText.replace("\n",""))
const title = document.querySelector('.question-stem').innerText
const text = [title,...options].join("\n")
function copyToClipboard(text) {
var textArea = document.createElement("textarea");
textArea.value = text;
document.body.appendChild(textArea);
var range = document.createRange();
range.selectNode(textArea);
window.getSelection().addRange(range);
try {
var successful = document.execCommand('copy');
var msg = successful ? '已复制到粘贴板' : '复制失败';
console.log(msg);
} catch (err) {
console.error('无法执行复制命令:', err);
}
document.body.removeChild(textArea);
window.getSelection().removeAllRanges();
}
copyToClipboard(text)
console.log(text)
})()
console