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
// ==UserScript== | |
// @name foodsharing.de pickups | |
// @name:de foodsharing.de-Abholungen | |
// @namespace https://adrianheine.de | |
// @description Add a button to load all upcoming food pickups | |
// @description:de Zeigt einen Knopf um alle kommenden Abholungen anzuzeigen | |
// @include https://foodsharing.de/?page=dashboard | |
// @grant none | |
// @version 1.1 | |
// ==/UserScript== |
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
var csv = require('./lib/csv'); | |
var util = require('util'); | |
var Stream = require('stream').Stream; | |
function ChunksStream(chunks) { | |
var self = this; | |
var i = 0; | |
var tick = function () { | |
if (i < chunks.length) { | |
self.emit('data', chunks[i++]); |