56b6d546db
This patch further improves the proposed pattern for the Redirector extension. In contrast to the old pattern, … * … it will redirect the URL https://medium.com. * … it will *not* redirect URLs with top-level domains like mediumXcom. (This point is purely theoretical, but it makes the regular expression more correct and consistent.) * … it will *not* redirect URLs like https://link.medium.com/AXEtCilplkb which Scribe currently cannot handle. These are shortened URLs that users get when they use the Twitter button on Medium to share a post. In order to implement the last point (not matching link.medium.com), the pattern uses negative lookbehind. This feature of regular expressions is supported by all recent browsers for which Redirector is available (Firefox, Chrome, Edge, Opera)[^1], including the current version of Firefox ESR (Extended Stability Release). [^1]: https://caniuse.com/js-regexp-lookbehind |
||
---|---|---|
.github/workflows | ||
config | ||
db/migrations | ||
public | ||
script | ||
spec | ||
src | ||
tasks | ||
.crystal-version | ||
.editorconfig | ||
.gitignore | ||
.tool-versions | ||
bs-config.js | ||
LICENSE | ||
package.json | ||
Procfile | ||
Procfile.dev | ||
README.md | ||
shard.lock | ||
shard.yml | ||
tasks.cr | ||
webpack.mix.js | ||
yarn.lock |
Scribe - An Alternative Medium Frontend
This is a project written using Lucky. It's main website is scribe.rip.
Deploying Your Own
I'd love it if you deploy your own version of this app! To do so currently will take some knowledge of how a webserver runs. If you want to give it a shot, there are a bunch of different ways to deploy. The main site runs on Ubuntu but there are also directions for Heroku or Dokku.
One thing to note is that this app doesn't currently use a database. Any instructions around postgres can be safely ignored. Lucky (and it's dependency Avram) however does need a DATABASE_URL
formatted for postgres. It doesn't need to be the URL of an actual database server though. Here's mine: DATABASE_URL=postgres://does@not/mater
Hopefully a more comprehensive guide will be written at some point, but for now feel free to reach out if you have any questions. My contact info can be found on my website.
Contributing
- Install required dependencies
- Run
script/setup
- Run
lucky dev
to start the app - Send a patch to
~edwardloveall/Scribe@lists.sr.ht
(yes that's an email address).
- To be honest, I'm not sure how I feel about the send patch git workflow as opposed to the GitHub style pull request workflow. I'm trying it out for now. If you can't figure it out, get in contact and we can figure out a way to get your contributions in.
Learning Lucky
Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.