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
| // Attempt to find the message list on this page. | |
| var msgList = document.querySelector('#content .message-list .messages'); | |
| var scroller = document.querySelector('#content .message-list-scroller'); | |
| // If the list was found continue. | |
| if( msgList && scroller ){ | |
| console.log('Active.') | |
| var li = document.createElement('LI'); | |
| li.id = 'controls' | |
| var html = '<label>Ignore last <input type="text" id="days" style="display:inline-block;"> days.</label><br>' |
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
| /** | |
| * Extract data from an HTML table with flexible column selection and processing. | |
| * | |
| * @param {string} id - The table's HTML id attribute | |
| * @param {string|number[]} columns - Column selection: "*" for all, "1-3" for range, "1,3,5" for specific, or array of column numbers (1-based) | |
| * @param {Object} options - Configuration options | |
| * @param {boolean} options.combine - Combine multiple cells into single string per row (default: false) | |
| * @param {boolean} options.skipHeaders - Skip rows containing <th> elements (default: false) | |
| * @param {number} options.skipRows - Number of rows to skip from the top (default: 0) | |
| * @param {string} options.delimiter - Character(s) to separate cell data (default: '\t') |
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
| /** | |
| * Used in the dev console to swap the studnets names from Last, First | |
| * to First Last in a BYUI pictroal class list. | |
| */ | |
| var names = document.querySelectorAll('#classListTable tr td'); | |
| var tmp; | |
| for( var x = 0; x < names.length; x++ ){ | |
| tmp = names[x].lastElementChild.innerHTML; | |
| tmp = tmp.split(', '); | |
| tmp = tmp[1] + ' ' + tmp[0]; |
This file has been truncated, but you can view the full file.
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
| // This prevents pollution of the global namespace | |
| var SQL = (function () { | |
| // The Module object: Our interface to the outside world. We import | |
| // and export values on it. There are various ways Module can be used: | |
| // 1. Not defined. We create it here | |
| // 2. A function parameter, function(Module) { ..generated code.. } | |
| // 3. pre-run appended it, var Module = {}; ..generated code.. | |
| // 4. External script tag defines var Module. | |
| // We need to check if Module already exists (e.g. case 3 above). | |
| // Substitution will be replaced with actual code on later stage of the build, |
NewerOlder