Skip to content

Instantly share code, notes, and snippets.

View CS-5's full-sized avatar

Carson Seese CS-5

View GitHub Profile
#content {
visibility: hidden;
}
div:has(#publicchat) {
visibility: visible;
grid-column-start: 1!important;
}
@CS-5
CS-5 / post_sheets.gs
Last active April 12, 2022 18:16
Google Sheets script to add rows via POST request (JSON or form payload). Only accepts fields that are valid columns on the sheet.
/* === Configuration === */
// The sheet to work with
const SHEET = SpreadsheetApp
.openById("FILE ID")
.getSheetByName("SHEET NAME");
// Create list of headings
const COLUMNS = SHEET.getRange(1, 1, 1, SHEET.getLastColumn()).getValues()[0].map(v => v.toString().toLowerCase());