Google-Ads-Tabelle als TSV kopieren
Eine Symbolleisten-Aktion kopiert die sichtbare Tabelle als TSV in die Zwischenablage für Tabellen.
Code zum Kopieren
/* Action: copy the visible table as TSV to the clipboard */
(function () {
try {
var table = document.querySelector('table');
if (!table) { alert('No table found on this page.'); return; }
var lines = [];
table.querySelectorAll('tr').forEach(function (tr) {
var cells = tr.querySelectorAll('th, td');
if (!cells.length) return;
var row = [];
cells.forEach(function (c) {
row.push((c.innerText || '').replace(/\s+/g, ' ').trim());
});
lines.push(row.join('\t'));
});
var tsv = lines.join('\n');
navigator.clipboard.writeText(tsv).then(function () {
alert('Copied ' + lines.length + ' rows as TSV.');
}, function () {
alert('Clipboard copy was blocked by the browser.');
});
} catch (e) {
alert('Could not copy the table: ' + e.message);
}
})();
So verwendest du dieses Beispiel
- Kopiere den Code mit der Schaltfläche oben.
- Installiere JustZix (2 Minuten) und öffne die Erweiterung auf der Zielseite.
- Füge eine neue Regel hinzu, die zu dieser Seite passt.
- Aktiviere das Aktionspanel, füge im Tab Aktionen einen Button hinzu und füge den Code ein — starte ihn mit einem Klick.
Bewerte dieses Beispiel
Noch keine Bewertungen — sei der Erste.