Skip to content

Instantly share code, notes, and snippets.

View glennhefley's full-sized avatar
💭
I may be slow to respond.

Glenn Hefley glennhefley

💭
I may be slow to respond.
View GitHub Profile
@glennhefley
glennhefley / README.md
Created April 11, 2024 07:16 — forked from TheOnlyWayUp/README.md
Wattpad: VoteAllParts.js

This script votes for all the parts in a Wattpad Story at once.

How to use:

  • Visit the URL of a Story (Ensure this is the page which has a table of contents, the story's tags, ...)
  • Press ctrl + shift + j. This opens the Developer Console.
  • Copy the script in this gist (below, and in script.js. Copy from whatever's convenient.)
  • Paste the code into the Developer Console on the Wattpad Tab, hit enter.
  • Great, you're done!

Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.

@glennhefley
glennhefley / ExportAllCSVinOneSpreadsheet.gs
Created July 14, 2020 19:58 — forked from simongcc/ExportAllCSVinOneSpreadsheet.gs
Google script to export all csv in one spreadsheet
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet
* Note: This script uses the DocsList.createFile() method, which is only available for Google Apps accounts.
* author: Michael Derazon
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
@glennhefley
glennhefley / shBrushJScript.js
Created July 14, 2020 19:48 — forked from mhawksey/shBrushJScript.js
SyntaxHighlighter which includes Google Apps Script services
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
@glennhefley
glennhefley / wiktionarylookup.html
Created July 14, 2020 00:57 — forked from nichtich/wiktionarylookup.html
Look up a word in Wiktionary via MediaWiki API and show the Wiktionary page
<html>
<head>
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script>
<script type="text/javascript">
var baseURL = 'http://en.wiktionary.org';
function showPage(page,text) {
var sourceurl = baseURL + '/wiki/' + page;
$('#pagetitle').text(page);
$('#wikiInfo').html(text);
$('#sourceurl').attr('href',sourceurl);