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
| // ==UserScript== | |
| // @name e621 elo compare | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.00001 | |
| // @description try to take over the world! | |
| // @author Sasquire | |
| // @match https://e621.net/extensions/post_elo | |
| // @match http://e621.net/extensions/post_elo |
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
| const fs = require('fs'); | |
| const all_lines = fs.readFileSync('./forums_but_nice.txt', 'utf8') | |
| .slice(0, -1) | |
| .split('\n') | |
| .map(e => e.split(' ').map(p => p.toLowerCase())); | |
| const all_words = {}; | |
| all_lines.forEach(line => line.forEach(word => | |
| all_words[word] ? all_words[word]++ : all_words[word] = 1 | |
| )); |
NewerOlder