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
| // Open Inspect -> Console, copy-paste this in. | |
| function load_all_gh_comments() { | |
| let buttons = Array.from(document.querySelectorAll('button')); | |
| let get_with_text = (text) => buttons.filter((b) => b.textContent.includes(text)); | |
| let load_more_buttons = get_with_text("Load more"); | |
| let nothing_loading = get_with_text("Loading…").length === 0; | |
| if (load_more_buttons.length === 0 && nothing_loading) { | |
| console.log("done loading comments"); |
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
| /* convISBN.js : converter ISBN10 <-> ISBN13 */ | |
| /* Copyright (c) 2007 by H.Tsujimura <tsupo@na.rim.or.jp> */ | |
| /* Distributed by LGPL. */ | |
| /* this script written by H.Tsujimura 20 Jan 2007 */ | |
| function convISBN13toISBN10(str) { | |
| var s; | |
| var c; | |
| var checkDigit = 0; | |
| var result = ""; |