Skip to content

Instantly share code, notes, and snippets.

View dadisimo's full-sized avatar

Fadi Zreik dadisimo

View GitHub Profile
// ==UserScript==
// @name         JSON Exporter Button
// @namespace    http://tampermonkey.net/
// @version      1.4 // Updated version number for the new feature
// @description  Adds a button to export all HTML tables on any catonet.works domain to JSON, using the hostname as the filename. It extracts all the versions.
// @author       FadiZ
// ==/UserScript==
function extractAndGroupGrafanaData() {
// 1. SELECTOR: Use the aggressive selector to find the table container.
const tableContainer = document.querySelector('.panel-content') ||
// ==UserScript==
// @name Jenkins Data Exporters
// @namespace http://tampermonkey.net/
// @version 1.5
// @description Adds buttons to export data from Grafana tables (to JSON).
// @author FadiZ
// @grant none
// @run-at document-idle
// ==/UserScript==
@dadisimo
dadisimo / gist:c527c0ec47d6b7af12adf57dc8d22ddf
Created October 15, 2025 10:41
Extract All HTML Tables
(function() {
// --- Core CSV Conversion Logic Function ---
function exportTablesToCSV() {
const tables = document.querySelectorAll('table');
let csvOutput = '';
if (tables.length === 0) {
console.warn('⚠️ No HTML tables found on this page.');
return;
}
@dadisimo
dadisimo / Extract Tables
Last active October 19, 2025 10:55
Snippets
// ==UserScript==
// @name         Table Exporter Button
// @namespace    http://tampermonkey.net/
// @version      1.4 // Updated version number for the new feature
// @description  Adds a button to export all HTML tables on any domain to CSV, using the hostname as the filename. It extracts all links from the 'Links0' column.
// @author       FadiZ
// @grant        none
// ==/UserScript==
(function() {
// --- Core CSV Conversion Logic Function ---