This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"text": "This is the message content", | |
"attachments": "[{\"text\":\"This is the attachment text\",\"fallback\":\"This is the attachment text\"}]" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"text": "This is the message content", | |
"attachments": [ | |
{ | |
"text": "This is the attachment text", | |
"fallback": "This is the attachment text" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' 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") |