You can have it as a oneliner:
curl -s https://www.youtube.com/@CHANNEL | grep -Po '"canonical" href="https://www.youtube.com/channel/\K.*?(?=">)' | xargs -I@ echo 'https://www.youtube.com/feeds/videos.xml?channel_id=@'youtube-rss-generator () {| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <regex.h> | |
| #define MAXM 1024 | |
| int main(int argc, char **argv) { |
| // ==UserScript== | |
| // @name Kernel hacker read mode | |
| // @namespace org.kernel | |
| // @match https://www.kernel.org/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description - | |
| // ==/UserScript== |
| Object.defineProperty(global, '__stack', { | |
| get: function(){ | |
| var orig = Error.prepareStackTrace; | |
| Error.prepareStackTrace = function(_, stack){ return stack; }; | |
| var err = new Error; | |
| Error.captureStackTrace(err, arguments.callee); | |
| var stack = err.stack; | |
| Error.prepareStackTrace = orig; | |
| return stack; | |
| } |