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 ytlocal | |
| // @version 1.0 | |
| // @description ytlocal | |
| // @match *://*.youtube.com/watch?* | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== | |
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
| #include <cctype> | |
| #include <ctime> | |
| #include <stdexcept> | |
| #include <vector> | |
| #include <string> | |
| std::vector<std::string> split(const std::string &s, char delimiter) { | |
| std::vector <std::string> tokens; | |
| # if 0 // stringstream is too much heavy for basic tokenization | |
| std::string token; |
OlderNewer