See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| for (var arrScripts = document.getElementsByTagName('script'), i = 0; i < arrScripts.length; i++) { | |
| if (arrScripts[i].textContent.indexOf('externalId') != -1) { | |
| var channelId = arrScripts[i].textContent.match(/\"externalId\"\s*\:\s*\"(.*?)\"/)[1]; | |
| var channelRss = 'https://www.youtube.com/feeds/videos.xml?channel_id=' + channelId; | |
| var channelTitle = document.title.match(/\(?\d*\)?\s?(.*?)\s\-\sYouTube/)[1]; | |
| console.log('The rss feed of the channel \'' + channelTitle + '\' is:\n' + channelRss); | |
| break; | |
| } | |
| } |
| // ==UserScript== | |
| // @name Auto Check-In to Southwest Flights | |
| // @namespace http://www.ryanizzo.com/southwest-auto-check-in/ | |
| // @version 1.8 | |
| // @author Nicholas Buroojy (http://userscripts.org/users/83813) | |
| // @contributor Ryan Izzo (http://www.ryanizzo.com) | |
| // @contributor JR Hehnly (http://www.okstorms.com @stormchasing) | |
| // @contributor Trevor McClellan (github.com/trevormcclellan) | |
| // @description Automatically check in to Southwest Airline flights at the appropriate time. | |
| // @include https://www.southwest.com/air/check-in/index.html* |
| # Caesar cipher encoding | |
| echo "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" | tr '[A-Z]' '[X-ZA-W]' | |
| # output: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD | |
| # Caesar cipher decoding | |
| echo "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD" | tr '[X-ZA-W]' '[A-Z]' | |
| # output: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | |
| # Can also be adjusted to ROT13 instead |