【1】Chromium系のインターネット・ブラウザで[文字列を引用しながらリンクを張る]ためのブックマークレット
javascript:(function(){var ctrl=/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B-\u200F\u202A-\u202E\u2060-\u206F\uFE00-\uFE0F\uFEFF]/g;var page_title=document.title.replace(/(^\s+)|(\s+$)|\n|\r/g,"").replace(/\s\s/g," ").replace(ctrl,"").normalize("NFC");var escaped_title=page_title.replace(/"/g,""");var selection='';var messageElement=document.querySelectorAll('div[data-peer-id], div[aria-label="Message"]');if(messageElement.length>0){selection=Array.from(messageElement).map(function(el){return el.innerText||el.textContent;}).join('\n');}else{selection=(document.getSelection()+"").replace(ctrl,"").normalize("NFC");}function getShadowText(node){var txt="";if(node.shadowRoot){txt+=getShadowText(node.shadowRoot);}node.childNodes.forEach(function(child){if(child.nodeType===3)txt+=child.textContent;else txt+=getShadowText(child);});return txt;}document.querySelectorAll("iframe").forEach(function(iframe){try{var body=iframe.contentDocument.body;if(body)selection+="\n"+body.innerText.replace(ctrl,"").normalize("NFC");}catch(e){}});var html=decodeURIComponent('%3Cp%3E%3Cfieldset%3E%3Cdl%20class%3D%22quote%22%3E%3Cdd%3E%3Cblockquote%20cite%3D%22') + location.href + decodeURIComponent('%22%20title%3D%22') + escaped_title + decodeURIComponent('%22%3E%3Cp%3E') + selection.replace(/\n/g,"<br>") + decodeURIComponent('%3C/p%3E%3C/blockquote%3E%3C/dd%3E%3Cdt%20class%3D%22cite%22%3E%E5%BC%95%E7%94%A8%E5%85%83%3A%20%3Ca%20href%3D%22') + location.href + decodeURIComponent('%22%20target%3D%22_blank%22%20rel%3D%22nofollow%22%3E') + escaped_title + decodeURIComponent('%3C/a%3E%3C/dt%3E%3C/dl%3E%3C/fieldset%3E%3C/p%3E');prompt("URL",html);})();
結果