This file contains 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
For some reason Marco doesn't have any settings to sort the Overcast web interface episodes. I got help | |
from the beautiful and incredibly helpful folks at stackoverflow.com: https://stackoverflow.com/a/72844538/1449531 . | |
The assembly of the bookmarklet created via: https://mrcoles.com/bookmarklet/ . | |
The web is beautiful! | |
Oh yea, this bookmarklet will sort the Overcast web interface episodes from oldest to latest. Unless you wanted vice versa, | |
change a,b to b,a in the .sort(). | |
Instructions to add the bookmarklet onto your browser is: | |
1. CTRL/CMD + D and name it. | |
2. Afterwards once its on your booksmarks bar, Edit it and add the JavaScript bookmarklet script. |
This file contains 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
on run {input, parameters} | |
set capitalize to ¬ | |
(do shell script "/bin/echo " & input & " | /usr/bin/awk '{for(i=1;i<=NF;i++)sub(/./,toupper(substr($i,1,1)),$i)}1'") | |
end run |
This file contains 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
on run {input} | |
set input to replaceText(" ", "-", input as string) | |
set input to replaceText(".", "", input as string) | |
set input to replaceText(":", "", input as string) | |
set input to replaceText(",", "", input as string) | |
set input to replaceText("@", "at", input as string) | |
set input to replaceText("'", "", input as string) | |
set input to replaceText("&", "and", input as string) | |
set input to replaceText("?", "", input as string) | |
set input to do shell script "echo " & quoted form of input & " | tr '[:upper:]' '[:lower:]'" |