This file contains 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
// Execute the "run" function below after setting up the appropriate APIs | |
// Original credit: https://stackoverflow.com/a/59222719/501042 | |
function sender_list_paged(token) { | |
var dt = new Date().getTime(); | |
var ss = SpreadsheetApp.create('Gmail count emails by sender ' + dt); | |
var sh = ss.getActiveSheet() | |
sh.clear(); | |
sh.appendRow(['Email Address', 'Count']); | |
var token = token || null; | |
var query = "in:inbox is:unread"; |
This file contains 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
/** | |
* Based on work from krasimirtsonev | |
* | |
* http://krasimirtsonev.com/blog/article/csssteal-chrome-extension-that-extracts-css | |
*/ | |
// helper function for transforming | |
// node.children to Array | |
function toArray (obj, ignoreFalsy) { | |
var arr = [], i; |