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 Roomba-VTZ (Vote-to-zero) | |
// @namespace https://gist.github.com/mogsdad/ed30af363a376ec4a1c2 | |
// @version 1.2 | |
// @description Presents a set of buttons to quickly down-vote questions & answers for automatic deletion. (AKA Roomba candidates) | |
// @author David Bingham (Mogsdad) | |
// @include /^https?://(meta\.)?(stackoverflow|stackexchange|serverfault|superuser|askubuntu|stackapps)\.com/questions/[0-9]+.*/ | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name zapHelpAndImrovement | |
// @namespace zapHelpAndImrovement | |
// @description Suppress the Help and Improvement review queue | |
// @include http://stackoverflow.com/review | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$('div').has('a[href="/review/helper"]').closest('.dashboard-item').remove(); |
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 Load review | |
// @namespace https://gist.github.com/mogsdad/50c5a3e9686cf0a8867f | |
// @version 1.2 | |
// @description When on a Stack Exchange network review tab, periodically checks whether there is a review available. | |
// @author David Bingham (Mogsdad) | |
// @include /^https?://(meta\.)?(stackoverflow|stackexchange|serverfault|superuser|askubuntu|stackapps)\.com/review/*/ | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name FindMyLastChatMsg | |
// @author Mogsdad | |
// @contributor Siguza | |
// @namespace chat.stackoverflow | |
// @description Find user's last posted message in a StackExchange chat room | |
// @include /^https?://chat.(stackoverflow|stackexchange|serverfault|superuser|askubuntu|stackapps)\.com/rooms/.*/ | |
// @version 1.0.0.0 | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name Stack Overflow Real Dark | |
// @namespace http://github.com/TinyGiant/ | |
// @description Real dark styling for Stack Overflow and some Stack Exchange sites | |
// @author @TinyGiant | |
// @run-at document-start | |
// @version 1.0.1.1m | |
// @include /^https?:\/\/.*\.?stack(overflow|exchange).com/.*$/ | |
// ==/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
/** | |
* Delete form response rows. If no input parameter is provided, prompt user | |
* for the number of form response rows to remove. To remove all rows, input | |
* -1. | |
* | |
* Assumes that the form responses are in the active sheet, that there is one | |
* row of 'headers' followed by responses (starting in row 2). | |
* | |
* @param {number} thisMany (Optional) The number of rows to remove. If not | |
* specified, user will be prompted for input. |
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
// EventManagerV3 glued together by mhawksey http://www.google.com/profiles/m.hawksey | |
// Related blog post http://mashe.hawksey.info/eventmanagerv3/ | |
// With some code (settings, importIntoCalendar, sendEmails) from | |
// Romain Vialard's http://www.google.com/profiles/romain.vialard | |
// Manage your events: Calendar Importer and Registration Form | |
// https://spreadsheets.google.com/ccc?key=tCHuQkkKh_r69bQGt4yJmNQ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var BOOKING_ACTION_COL = 10; |
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
/** | |
* Run experiments to measure speed of various approaches to saving data in | |
* Google App Script (GAS). | |
*/ | |
function testSpeed() { | |
var numObj = 400; | |
var numAttr = 10; | |
var doFlush = false; // Set true to activate calls to SpreadsheetApp.flush() | |
var arr = buildArray(numObj,numAttr); |
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
/** | |
* Retrieves a given user label by name and forwards unread messages | |
* associated with that that label to a member of the Hunt Group. | |
*/ | |
function huntGroupForward() { | |
// get the label for given name | |
var labelName = "elephant" | |
var label = GmailApp.getUserLabelByName(labelName); | |
if (label == null) throw new Error("No messages for label "+labelName); | |
// get count of all threads in the given label |
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
/** | |
* Returns a non-destructive Array of elements that are not found in | |
* any of the parameter arrays. | |
* | |
* @param {...Array} var_args Arrays to compare. | |
*/ | |
Array.prototype.uniqueFrom = function() { | |
if (!arguments.length) | |
return []; | |
var a1 = this.slice(0); // Start with a copy |
OlderNewer