Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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()+"