Skip to content

Instantly share code, notes, and snippets.

// Function to find and click the checkbox
function clickAutoSearchToggle() {
const autoSearchToggle = document.getElementById('auto-search-toggle');
if (autoSearchToggle) {
autoSearchToggle.click(); // Click the checkbox
}
}
// Call the function when the DOM is fully loaded
document.addEventListener('DOMContentLoaded', clickAutoSearchToggle);
/* google.com */
div[aria-label^="Google Drive Folder: o"] {
color: #007500 !important;
font-weight: bold;
}
div[aria-label^="Google Drive Folder: x"] {
color: #ddd !important;
}
Sub Zap()
Dim CurrentSheet As Worksheet
Dim FieldRow As Range
For Each CurrentSheet In ActiveWorkbook.Sheets
CurrentSheet.Activate
Set FieldRow = CurrentSheet.Columns(1).Find("Fields")
ApplySensibleDefaults FieldRow
Next
{
"text": "This is the message content",
"attachments": "[{\"text\":\"This is the attachment text\",\"fallback\":\"This is the attachment text\"}]"
}
{
"text": "This is the message content",
"attachments": [
{
"text": "This is the attachment text",
"fallback": "This is the attachment text"
}
]
}
' http://web.archive.org/web/20060527094535/http://www.nonhostile.com/howto-encode-decode-base64-vb6.asp
' http://cwestblog.com/2013/09/23/vbscript-convert-image-to-base-64/
Public Function ConvertFileToBase64(strFilePath As String) As String
Const UseBinaryStreamType = 1
Dim streamInput: Set streamInput = CreateObject("ADODB.Stream")
Dim xmlDoc: Set xmlDoc = CreateObject("Microsoft.XMLDOM")
Dim xmlElem: Set xmlElem = xmlDoc.createElement("tmp")