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
| /** | |
| * ------------------------------------------------------------------------------------------------ | |
| * Rogel Delgado Mesa, 2019 | |
| * ------------------------------------------------------------------------------------------------ | |
| */ | |
| // KEYCODES // | |
| var BACK_SPACE = 8; // BACKSPACE | |
| var TAB = 9; // TAB | |
| var RETURN = 13; // ENTER |
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
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
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
| // Following grants are needed for some of the functions below to function | |
| // @grant GM_openInTab | |
| // @grant GM_xmlhttpRequest | |
| // @grant GM_notification | |
| // Default configuration object that can be overridden | |
| window.TM_CONFIG = window.TM_CONFIG || { | |
| debug: true, | |
| notificationTimeout: 3000, | |
| clickMethods: { |