ã»ã¬ã¯ã¿ã§æå®ããã¿ã°ãã¹ã¦ã®å
容ãåå¾ããããã¯ãã¼ã¯ã¬ãããChatGPTã§ä¸ç¬ã§ã§ããã¾ã便å©ã
javascript:(function() {
var selector = prompt('ã»ã¬ã¯ã¿ãå
¥åãã¦ãã ãã');
if (selector) {
var elements = document.querySelectorAll(selector);
if (elements.length > 0) {
var textToCopy = Array.from(elements).map(function(element) {
return element.textContent;
}).join('\n');
var textArea = document.createElement('textarea');
textArea.value = textToCopy;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
alert('ã³ãã¼ãã¾ãã:\n' + textToCopy);
} else {
alert('ã»ã¬ã¯ã¿ã«ä¸è´ããè¦ç´ ãè¦ã¤ããã¾ããã§ãã');
}
}
})();