Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tordans/waitbutwhy-to-instapaper
Some (all?) waitbutwhy.com cannot be cached via instapaper.com. Try these versions of the article instead.
https://github.com/tordans/waitbutwhy-to-instapaper
Last synced: about 1 month ago
JSON representation
Some (all?) waitbutwhy.com cannot be cached via instapaper.com. Try these versions of the article instead.
- Host: GitHub
- URL: https://github.com/tordans/waitbutwhy-to-instapaper
- Owner: tordans
- Created: 2015-09-26T17:27:11.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T12:13:34.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T20:45:26.015Z (2 months ago)
- Language: HTML
- Homepage: http://tordans.github.io/waitbutwhy-to-instapaper/
- Size: 376 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Waitbutwhy.com to Instapaper.com
Please read here for what is it all about:
http://tordans.github.io/waitbutwhy-to-instapaper/# How to add posts
1. Copy the JS below in your Google Chrome Console
2. Create a new html file, use the copy-paste filename and content
3. Add the artikel to the index.html
4. Create a pull request for it all## Copy Paste JS
```javascript
// The title of our new html file
title = 'waitbutwhy.com: ' + $('.entry-header').text();
// Remove social sharing that we cannot use in instapaper
$('.homeSocial').remove();
$('#socBarmageddon').remove();
$('#social-ads').remove();
// Extend the body so the footnotes become part of the article
$('a.footnote-button').after("
[FOOTNOTE-START:] "+$('a.footnote-button').attr('data-footnote-content')+" [/FOOTNOTE-END]
")
// The body of our new html file
body = $('.post');
url_readable = window.location.hostname+window.location.pathname;
replace_urles = new RegExp('/', 'g');
url_as_filename = url_readable.replace(replace_urles, '_');
copy_paste_me = "\n\n\n\n"+title+"Find the original content here: "+url_readable+"
"+body.html()+"