├── src ├── html │ └── .gitignore ├── config.js ├── components │ ├── SpreadTheWord │ │ ├── SpreadTheWord.css │ │ └── SpreadTheWord.jsx │ └── App │ │ ├── App.css │ │ └── App.jsx ├── background.js ├── constants.js ├── storage.js ├── analytics.js ├── utils.js ├── request_interceptors.js └── medium-unlocker.js ├── website ├── _sass │ ├── _base.scss │ ├── _layout.scss │ ├── _syntax-highlighting.scss │ └── _color.scss ├── .gitignore ├── _includes │ ├── icon-github.html │ ├── icon-twitter.html │ ├── header.html │ ├── icon-twitter.svg │ ├── icon-github.svg │ ├── footer.html │ └── head.html ├── .coafile ├── start.sh ├── _layouts │ ├── default.html │ ├── page.html │ ├── archive.html │ └── post.html ├── README.md ├── sitemap.xml ├── _config.yml ├── about.md ├── LICENSE.txt ├── download.md ├── index.html └── css │ └── style.scss ├── .babelrc ├── .gitignore ├── static ├── logo.png ├── loader.gif ├── logo_128.png ├── logo_16.png ├── logo_48.png ├── floating_button_256.png └── loader.svg ├── designs ├── logo.gvdesign ├── screenshot.png └── screenshot_comparison.gvdesign ├── .gitattributes ├── .prettierrc ├── .github └── FUNDING.yml ├── package.json ├── webpack.config.js ├── README.md ├── manifest.json └── LICENSE /src/html/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/_sass/_base.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/_sass/_layout.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/_sass/_syntax-highlighting.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env", "react", "stage-2"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | dist/ 3 | node_modules 4 | website/medium-unlimited-* 5 | -------------------------------------------------------------------------------- /static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/logo.png -------------------------------------------------------------------------------- /website/.gitignore: -------------------------------------------------------------------------------- 1 | _site 2 | .sass-cache 3 | .jekyll-metadata 4 | .jekyll-cache 5 | **.orig -------------------------------------------------------------------------------- /static/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/loader.gif -------------------------------------------------------------------------------- /static/logo_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/logo_128.png -------------------------------------------------------------------------------- /static/logo_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/logo_16.png -------------------------------------------------------------------------------- /static/logo_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/logo_48.png -------------------------------------------------------------------------------- /designs/logo.gvdesign: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/designs/logo.gvdesign -------------------------------------------------------------------------------- /designs/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/designs/screenshot.png -------------------------------------------------------------------------------- /static/floating_button_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/static/floating_button_256.png -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | const config = { 2 | amplitude: { 3 | api_key: '', 4 | }, 5 | }; 6 | 7 | export default config; 8 | -------------------------------------------------------------------------------- /designs/screenshot_comparison.gvdesign: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manojVivek/medium-unlimited/HEAD/designs/screenshot_comparison.gvdesign -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.css linguist-detectable=false 2 | *.html linguist-detectable=false 3 | *.htm linguist-detectable=false 4 | *.js linguist-detectable=true 5 | -------------------------------------------------------------------------------- /website/_includes/icon-github.html: -------------------------------------------------------------------------------- 1 | {% include icon-github.svg %}{{ include.username }} 2 | -------------------------------------------------------------------------------- /website/_includes/icon-twitter.html: -------------------------------------------------------------------------------- 1 | {{ include.username }} 2 | -------------------------------------------------------------------------------- /website/.coafile: -------------------------------------------------------------------------------- 1 | [default] 2 | bears = SpaceConsistencyBear 3 | files = **.(md|html|css|js) 4 | use_spaces = yes 5 | 6 | [markdown] 7 | bears = MarkdownBear, SpaceConsistencyBear 8 | files = **.md 9 | use_spaces = yeah 10 | -------------------------------------------------------------------------------- /website/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #serve -s ./_site -p 80 & 4 | #docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll jekyll build --watch 5 | 6 | 7 | #export PATH=$HOME/.gem/ruby/2.3.0/bin:$PATH 8 | 9 | jekyll serve 10 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "overrides": [ 3 | { 4 | "files": [".prettierrc", ".babelrc", ".eslintrc", ".stylelintrc"], 5 | "options": { 6 | "parser": "json" 7 | } 8 | } 9 | ], 10 | "singleQuote": true, 11 | "bracketSpacing": false, 12 | "trailingComma": "es5" 13 | } 14 | -------------------------------------------------------------------------------- /src/components/SpreadTheWord/SpreadTheWord.css: -------------------------------------------------------------------------------- 1 | .header { 2 | text-align: center; 3 | } 4 | 5 | .shareIcon { 6 | display: inline-block; 7 | padding: 10px; 8 | } 9 | 10 | .shareList { 11 | width: 288px; 12 | padding: 20px; 13 | text-align: center; 14 | } 15 | 16 | .handCursor { 17 | cursor: pointer; 18 | } 19 | -------------------------------------------------------------------------------- /src/background.js: -------------------------------------------------------------------------------- 1 | import intercept from './request_interceptors'; //Importing just to make sure the interceptors are registered. 2 | import {init} from './utils'; 3 | import 'webext-dynamic-content-scripts'; 4 | import addDomainPermissionToggle from 'webext-domain-permission-toggle'; 5 | 6 | 7 | //Initialize global handlers 8 | init(); 9 | 10 | intercept(); 11 | 12 | addDomainPermissionToggle(); -------------------------------------------------------------------------------- /website/_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% include head.html %} 5 | 6 | 7 | 8 | {% include header.html %} 9 | 10 |
11 |
12 | {{ content }} 13 |
14 |
15 | 16 | {% include footer.html %} 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /website/README.md: -------------------------------------------------------------------------------- 1 | # https://manojvivek.github.io/medium-unlimited/ 2 | Static site for [MediumUnlimited](https://github.com/manojVivek/medium-unlimited) live at [https://manojvivek.github.io/medium-unlimited/](https://manojvivek.github.io/medium-unlimited/) using the minimalist theme [Gravity](http://github.com/hemangsk/Gravity) for jekyll. 3 | 4 | # Usage 5 | Run the `start.sh` file in the root to bootstrap the local development environment. 6 | -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- 1 | export const CONTENT_SECTION_CLASSNAME = 'section-content'; 2 | export const MEMBERSHIP_PROMPT_CLASSNAME = 'postFade'; 3 | export const MEMBERSHIP_PROMPT_ID = 'paywall-background-color'; 4 | export const METERED_CONTENT_CLASSNAME = 'meteredContent'; 5 | 6 | export const USER_ID_KEY = 'userId'; 7 | export const READ_COUNT_KEY = 'readCount'; 8 | 9 | export const FETCH_CONTENT_MESSAGE = 'fetchContent'; 10 | export const FETCH_USER_ID = 'fetchUserId'; 11 | -------------------------------------------------------------------------------- /website/_layouts/page.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 |
5 | 6 |
7 | 8 |
9 | 10 | {%if page.tagline%} 11 |
12 | 13 |
14 | {% endif %} 15 | 16 |
17 | {{ content }} 18 |
19 | 20 |
21 | -------------------------------------------------------------------------------- /src/storage.js: -------------------------------------------------------------------------------- 1 | import {USER_ID_KEY, READ_COUNT_KEY} from './constants'; 2 | 3 | export function setUserId(id) { 4 | window.localStorage.setItem(USER_ID_KEY, id); 5 | } 6 | 7 | export function getUserId() { 8 | return window.localStorage.getItem(USER_ID_KEY); 9 | } 10 | 11 | export function incrementReadCountAndGet() { 12 | let readCount = window.localStorage.getItem(READ_COUNT_KEY); 13 | if (!readCount) { 14 | readCount = '0'; 15 | } 16 | const newReadCount = parseInt(readCount, 10) + 1; 17 | window.localStorage.setItem(READ_COUNT_KEY, newReadCount.toString()); 18 | return newReadCount; 19 | } 20 | -------------------------------------------------------------------------------- /website/_includes/header.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
{{site.title}}
4 |
5 |
6 |
{{site.description}}
7 |
8 |
9 | 19 |
20 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: ['https://paypal.me/manojvivek'] 13 | -------------------------------------------------------------------------------- /website/_layouts/archive.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | --- 4 | 5 | 6 | {% for post in site.posts %} 7 | {% for cat in post.categories %} 8 | {% if cat == page.category %} 9 | 10 | 11 | 12 |
13 | 15 | 18 |
19 |
20 | {{post.title}} 21 |
22 |
23 | {{post.excerpt}} 24 |
25 |
26 | {% endif %} 27 | {% endfor %} 28 | 29 | {% endfor %} 30 | -------------------------------------------------------------------------------- /website/_includes/icon-twitter.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /website/sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | https://manojvivek.github.io/medium-unlimited 11 | 2019-03-03T11:13:07+00:00 12 | 1.00 13 | 14 | 15 | https://manojvivek.github.io/medium-unlimited/about/ 16 | 2019-03-03T11:13:07+00:00 17 | 0.80 18 | 19 | 20 | https://manojvivek.github.io/medium-unlimited/download/ 21 | monthly 22 | 1.00 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /website/_config.yml: -------------------------------------------------------------------------------- 1 | # Welcome to Jekyll! 2 | # 3 | # This config file is meant for settings that affect your whole blog, values 4 | # which you are expected to set up once and rarely need to edit after that. 5 | # For technical reasons, this file is *NOT* reloaded automatically when you use 6 | # 'jekyll serve'. If you change this file, please restart the server process. 7 | 8 | # Site settings 9 | title: Medium Unlimited 10 | email: p.manoj.vivek@gmail.com 11 | description: Read medium.com premium articles without subscription! 12 | baseurl: "/medium-unlimited" # the subpath of your site, e.g. /blog 13 | url: "hhttps://manojvivek.github.io" # the base hostname & protocol for your site 14 | twitter_username: 15 | github_username: manojVivek 16 | paginate: 5 17 | theme-dark: false #Set to true to change to dark website theme 18 | 19 | plugins: [kramdown] 20 | # Build settings 21 | markdown: kramdown 22 | -------------------------------------------------------------------------------- /website/_includes/icon-github.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/analytics.js: -------------------------------------------------------------------------------- 1 | import AmplitudeClient from 'amplitude'; 2 | import {amplitudeApiKey, log} from './utils'; 3 | import {getUserId} from './storage'; 4 | import {FETCH_USER_ID} from './constants'; 5 | 6 | let client; 7 | 8 | function _getAmplitudeClient() { 9 | if (client) { 10 | return Promise.resolve(client); 11 | } 12 | return new Promise((resolve, reject) => { 13 | if (getUserId()) { 14 | client = _createClient(getUserId()); 15 | return resolve(client); 16 | } 17 | chrome.runtime.sendMessage({type: FETCH_USER_ID}, response => { 18 | log('Received response for userId', response); 19 | if (response.status != 'SUCCESS') { 20 | return reject(response); 21 | } 22 | client = _createClient(response.userId); 23 | return resolve(client); 24 | }); 25 | }); 26 | } 27 | 28 | function _createClient(user_id) { 29 | return new AmplitudeClient(amplitudeApiKey(), {user_id}); 30 | } 31 | 32 | export function track(event_type) { 33 | _getAmplitudeClient().then(client => client.track({event_type})); 34 | } 35 | -------------------------------------------------------------------------------- /website/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: About 4 | permalink: /about/ 5 | 6 | tagline: "" 7 | --- 8 | 9 |
10 | 11 |
12 |
Open sourced on Github
13 |
14 |
15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 |
23 |

Please get in touch if you have any question or thoughts: p.manoj.vivek@gmail.com

24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "medium-unlimited", 3 | "version": "2.0.0", 4 | "description": "A chrome extension to unlock medium.com paywall", 5 | "main": "index.js", 6 | "scripts": { 7 | "dev": "webpack --mode development --watch", 8 | "build": "webpack --mode production", 9 | "deploy-website": "gh-pages -d website/_site" 10 | }, 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "amplitude": "^3.5.0", 15 | "classnames": "^2.2.6", 16 | "gh-pages": "^2.2.0", 17 | "react": "^16.4.2", 18 | "react-dom": "^16.4.2", 19 | "webext-domain-permission-toggle": "^2.1.0", 20 | "webext-dynamic-content-scripts": "^7.1.2" 21 | }, 22 | "devDependencies": { 23 | "babel-core": "^6.26.3", 24 | "babel-loader": "^7.1.4", 25 | "babel-polyfill": "^6.26.0", 26 | "babel-preset-env": "^1.7.0", 27 | "babel-preset-react": "^6.24.1", 28 | "babel-preset-stage-0": "^6.24.1", 29 | "babel-preset-stage-2": "^6.24.1", 30 | "copy-webpack-plugin": "^5.1.1", 31 | "css-loader": "^1.0.0", 32 | "style-loader": "^0.23.0", 33 | "webpack": "^4.41.5", 34 | "webpack-cli": "^3.1.0" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /website/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | MIT License 4 | 5 | Copyright (c) 2019 Manoj Vivek 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const CopyWebpackPlugin = require('copy-webpack-plugin'); 2 | 3 | module.exports = { 4 | entry: { 5 | background: ['babel-polyfill', './src/background.js'], 6 | main: './src/medium-unlocker.js', 7 | }, 8 | output: { 9 | filename: '[name].bundle.js', 10 | }, 11 | module: { 12 | rules: [ 13 | { 14 | test: /\.jsx?$/, 15 | exclude: /node_modules/, 16 | use: { 17 | loader: 'babel-loader', 18 | }, 19 | }, 20 | { 21 | test: /\.css$/, 22 | use: [ 23 | { 24 | loader: 'style-loader', 25 | }, 26 | { 27 | loader: 'css-loader', 28 | options: { 29 | modules: true, 30 | importLoaders: 1, 31 | localIdentName: '[name]_[local]_[hash:base64]', 32 | sourceMap: true, 33 | minimize: true, 34 | }, 35 | }, 36 | ], 37 | }, 38 | ], 39 | }, 40 | plugins: [ 41 | new CopyWebpackPlugin( 42 | [ 43 | {from: 'static', to: 'static'}, 44 | {from: 'src/html', to: 'html'}, 45 | {from: 'manifest.json', to: 'manifest.json'}, 46 | ], 47 | {debug: true, context: '.'} 48 | ), 49 | ], 50 | }; 51 | -------------------------------------------------------------------------------- /website/_layouts/post.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 |
5 | 6 |
7 |

{{ page.title }}

8 |
9 | {% if page.author %} 10 |
11 |

Author

{{page.author}}

13 | 14 |
15 | {% endif %} 16 |
17 |
18 | 19 |
20 | {{ content }} 21 |
22 | 23 | 35 | 36 | 37 |
38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Medium Unlimited [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Yay!!%20I%20found%20this%20open%20source%20chrome%20extension%20to%20read%20Medium.com%20membership%20articles%20for%20free!%20%0ACheck%20it%20out%20-%20&url=https://github.com/manojVivek/medium-unlimited&hashtags=medium,membership,free,github,oss,opensource) 2 | 3 | 4 | Code repository for the browser extension to unlock the articles behind the medium.com membership paywall. 5 | 6 | Try the production version of the extension here: 7 | 8 | For Chrome: https://manojvivek.github.io/medium-unlimited/download/ 9 | 10 | For Firefox: https://addons.mozilla.org/en-US/firefox/addon/medium-unlimited-read-for-free 11 | 12 | 13 | # Development 14 | 15 | Run the following to build the code: 16 | 17 | ``` 18 | npm run dev #For local development 19 | #or 20 | npm run build #For production release 21 | ``` 22 | 23 | This will generate the bundle and other required files in ./dist directory. 24 | 25 | Load the generated chrome extension in chrome by `Kebab menu(⋮) -> More Tools -> Extensions` and then click on `LOAD UNPACKED` and select the dist folder. 26 | Chrome extension is loaded and ready to use. 27 | 28 | # Screenshot: 29 | ![alt text](https://raw.githubusercontent.com/manojVivek/medium-unlimited/master/designs/screenshot.png "Before after comparison") 30 | -------------------------------------------------------------------------------- /website/_includes/footer.html: -------------------------------------------------------------------------------- 1 | 47 | -------------------------------------------------------------------------------- /website/download.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title : Download 4 | permalink: /download/ 5 | --- 6 | 7 |

Firefox Browser

8 |

Head over to the firefox addons store and install the Medium-Unlimited addon.

9 |

Link - https://addons.mozilla.org/en-US/firefox/addon/medium-unlimited-read-for-free/

10 |
11 |

Google Chrome Browser

12 |

Follow the below steps to add the extension to your Google Chrome browser:

13 |
    14 |
  1. Open the Extension Manager by following:

    Kebab menu(⋮) -> More Tools -> Extensions

  2. 15 |
  3. If the developer mode is not turned on, turn it on by clicking the toggle in the top right corner

  4. 16 |
  5. Download the extension file from here.

  6. 17 |
  7. Extract the downloaded .zip file and note the extracted path

  8. 18 |
  9. Now click on Load unpacked button on the top left and select the extracted folder

  10. 19 |
  11. You are all-set now, head over to medium.com and enjoy the articles!

  12. 20 |
21 | 22 | 23 |

Please get in touch if you need any help in installing the extension: p.manoj.vivek@gmail.com

24 | 25 | -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | import config from './config'; 2 | import {setUserId, getUserId} from './storage'; 3 | import {track} from './analytics'; 4 | import {MEMBERSHIP_PROMPT_CLASSNAME, MEMBERSHIP_PROMPT_ID, METERED_CONTENT_CLASSNAME} from './constants'; 5 | 6 | export function log(...messages) { 7 | if (process.env.NODE_ENV === 'production') { 8 | return; 9 | } 10 | console.log(...messages); 11 | } 12 | 13 | export function amplitudeApiKey() { 14 | if (process.env.NODE_ENV === 'production') { 15 | return config.amplitude.api_key; 16 | } 17 | return 'test_api_key'; 18 | } 19 | 20 | export function init() { 21 | chrome.runtime.setUninstallURL('https://manojvivek.typeform.com/to/c0VaBs'); 22 | chrome.runtime.onInstalled.addListener(() => { 23 | if (!getUserId()) { 24 | setUserId(new Date().getTime().toString()); 25 | track('INSTALLED'); 26 | } 27 | }); 28 | } 29 | 30 | export function urlWithoutQueryParams(url) { 31 | if (!url) { 32 | return ''; 33 | } 34 | return url.split('?')[0]; 35 | } 36 | 37 | function hasMembershipPromptNew(document) { 38 | const article = document.getElementsByTagName('article')[0]; 39 | if (!article) { 40 | return false; 41 | } 42 | const computedStyles = (document.defaultView || window).getComputedStyle(article.nextSibling); 43 | if (!computedStyles.background) { 44 | return false; 45 | } 46 | return computedStyles.background.indexOf('linear-gradient') > -1; 47 | } 48 | 49 | export function hasMembershipPrompt(document) { 50 | return ( 51 | document.getElementById(MEMBERSHIP_PROMPT_ID) || 52 | hasMembershipPromptNew(document) 53 | ); 54 | } 55 | 56 | export function getTwitterReferer() { 57 | return `https://t.co/${Math.random().toString(36).slice(2)}`; 58 | } 59 | 60 | export function getMeteredContentElement(doc) { 61 | return (doc || document).getElementsByClassName(METERED_CONTENT_CLASSNAME)[0]; 62 | } 63 | -------------------------------------------------------------------------------- /website/_includes/head.html: -------------------------------------------------------------------------------- 1 | 2 | {% if page.title %}{{ page.title | escape_once }}{% else %}{{ site.title | escape_once }}{% endif %} 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 36 | 37 | -------------------------------------------------------------------------------- /src/components/App/App.css: -------------------------------------------------------------------------------- 1 | .container { 2 | position: fixed; 3 | top: 35%; 4 | right: 0px; 5 | color: white; 6 | } 7 | 8 | .headerContainer { 9 | text-align: center; 10 | height: 64px; 11 | background-color: rgba(0, 0, 0, 0.88); 12 | border-radius: 8px 0 0 8px; 13 | } 14 | 15 | .headerExpanded { 16 | border-radius: 8px 0 0 0; 17 | border-bottom: 1px solid rgba(187, 187, 187, 0.6); 18 | } 19 | 20 | .iconContainer { 21 | height: 48px; 22 | padding: 8px; 23 | cursor: pointer; 24 | display: inline-block; 25 | } 26 | 27 | .iconImg { 28 | height: inherit; 29 | } 30 | 31 | .visibleFadeIn { 32 | visibility: visible; 33 | opacity: 1; 34 | transition: opacity 0.5s linear; 35 | } 36 | 37 | .hideFadeOut { 38 | visibility: hidden; 39 | opacity: 0; 40 | transition: visibility 0s 0.5s, opacity 0.5s linear; 41 | } 42 | 43 | .hide { 44 | visibility: hidden; 45 | opacity: 0; 46 | } 47 | 48 | .headerContent { 49 | display: inline-block; 50 | vertical-align: top; 51 | } 52 | 53 | .visibleHeaderContent { 54 | padding: 20px 15px 0 0; 55 | width: 260px; 56 | transition: all 0.25s ease; 57 | } 58 | 59 | .hideHeaderContent { 60 | padding: 20px 0px 0 0; 61 | width: 0; 62 | transition: all 0.25s ease; 63 | } 64 | 65 | .bodyContent { 66 | background-color: rgba(0, 0, 0, 0.88); 67 | border: 1px solid; 68 | box-sizing: border-box; 69 | width: 340px; 70 | border: 0; 71 | border-radius: 0 0 0 8px; 72 | font-size: 17px; 73 | } 74 | 75 | .visibleBodyContent { 76 | padding: 20px 10px 10px; 77 | height: 200px; 78 | transition: padding 0s 0.25s ease, width 0s 0.25s ease, 79 | height 0.25s 0.25s ease; 80 | } 81 | 82 | .hideBodyContent { 83 | height: 0; 84 | width: 0; 85 | padding: 0; 86 | overflow: hidden; 87 | transition: height 0.25s ease; 88 | } 89 | 90 | .closeButton { 91 | width: 10px; 92 | position: absolute; 93 | left: -24px; 94 | top: 6px; 95 | color: black; 96 | } 97 | 98 | .nowrap { 99 | white-space: nowrap; 100 | } 101 | 102 | .handCursor { 103 | cursor: pointer; 104 | } 105 | -------------------------------------------------------------------------------- /src/components/App/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import classNames from 'classnames'; 3 | import styles from './App.css'; 4 | import SpreadTheWord from '../SpreadTheWord/SpreadTheWord.jsx'; 5 | import {track} from '../../analytics'; 6 | 7 | class App extends React.Component { 8 | constructor(props) { 9 | super(props); 10 | this.imageUrl = chrome.extension.getURL('static/floating_button_256.png'); 11 | this.state = {visible: false}; 12 | } 13 | 14 | componentDidMount() { 15 | window.addEventListener('scroll', this._scrollEventListener); 16 | } 17 | 18 | componentWillUnmount() { 19 | window.removeEventListener('scroll', this._scrollEventListener); 20 | } 21 | 22 | _scrollEventListener = () => { 23 | if ( 24 | window.scrollY >= 500 && 25 | document.body.scrollHeight - window.scrollY > 1800 26 | ) { 27 | if (!this.state.visible) { 28 | this.setState({visible: true}); 29 | } 30 | } else { 31 | if (this.state.visible) { 32 | this.setState({visible: false}); 33 | } 34 | } 35 | }; 36 | 37 | render() { 38 | return ( 39 |
45 |
50 | {this._getHeader()} 51 |
52 | {this._getExpandedContent()} 53 |
54 | ); 55 | } 56 | 57 | _getHeader = () => { 58 | return ( 59 |
60 |
this.setState({expanded: false})} 66 | > 67 | 68 |
69 |
{ 72 | if (!this.state.expanded) { 73 | track('FLOATING_BUTTON_CLICKED'); 74 | } 75 | this.setState({expanded: !this.state.expanded}); 76 | }} 77 | > 78 | 79 |
80 |
86 | 87 | Medium-Unlimited 88 | 89 |
90 |
91 | ); 92 | }; 93 | 94 | _getExpandedContent = () => { 95 | return ( 96 |
102 | 103 |
104 | ); 105 | }; 106 | } 107 | 108 | export default App; 109 | -------------------------------------------------------------------------------- /static/loader.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/request_interceptors.js: -------------------------------------------------------------------------------- 1 | import {getTwitterReferer} from './utils'; 2 | 3 | const urlsList = [ 4 | 'https://medium.com/*', 5 | 'https://www.google.com/search/*', 6 | 'https://towardsdatascience.com/*', 7 | 'https://hackernoon.com/*', 8 | 'https://medium.freecodecamp.org/*', 9 | 'https://psiloveyou.xyz/*', 10 | 'https://betterhumans.coach.me/*', 11 | 'https://codeburst.io/*', 12 | 'https://theascent.pub/*', 13 | 'https://*.medium.com/*', 14 | 'https://medium.mybridge.co/*', 15 | 'https://uxdesign.cc/*', 16 | 'https://levelup.gitconnected.com/*', 17 | 'https://itnext.io/*', 18 | 'https://entrepreneurshandbook.co/*', 19 | 'https://proandroiddev.com/*', 20 | 'https://blog.prototypr.io/*', 21 | 'https://thebolditalic.com/*', 22 | 'https://blog.usejournal.com/*', 23 | 'https://blog.angularindepth.com/*', 24 | 'https://blog.bitsrc.io/*', 25 | 'https://blog.devartis.com/*', 26 | 'https://blog.maddevs.io/*', 27 | 'https://blog.getambassador.io/*', 28 | 'https://uxplanet.org/*', 29 | 'https://instagram-engineering.com/*', 30 | 'https://calia.me/*', 31 | 'https://productcoalition.com/*', 32 | 'https://engineering.opsgenie.com/*', 33 | 'https://android.jlelse.eu/*', 34 | 'https://robinhood.engineering/*', 35 | 'https://blog.hipolabs.com/*', 36 | 'https://ux.shopify.com/*', 37 | 'https://engineering.talkdesk.com/*', 38 | 'https://blog.codegiant.io/*', 39 | 'https://tech.olx.com/*', 40 | 'https://netflixtechblog.com/*', 41 | 'https://hackingandslacking.com/*', 42 | 'https://blog.kotlin-academy.com/*', 43 | 'https://blog.securityevaluators.com/*', 44 | 'https://blog.kubernauts.io/*', 45 | 'https://blog.coffeeapplied.com/*', 46 | 'https://unbounded.io/*', 47 | 'https://writingcooperative.com/*', 48 | 'https://*.plainenglish.io/*', 49 | 'https://*.betterprogramming.pub/*', 50 | 'https://blog.doit-intl.com/*', 51 | 'https://eand.co/*', 52 | 'https://techuisite.com/*', 53 | 'https://levelupprogramming.net/*', 54 | 'https://betterhumans.pub/*', 55 | 'https://betterprogramming.pub/*', 56 | 'https://pub.towardsai.net/*', 57 | 'https://bettermarketing.pub/*', 58 | 'https://themakingofamillionaire.com/*', 59 | 'https://medium.datadriveninvestor.com/*', 60 | 'https://bootcamp.uxdesign.cc/*', 61 | 'https://*.baos.pub/*', 62 | 'https://www.inbitcoinwetrust.net/*', 63 | 'https://blog.prototypr.io/*', 64 | 'https://blog.devgenius.io/*' 65 | ]; 66 | 67 | export default function intercept() { 68 | function onBeforeSendHeaders(details) { 69 | if (details.requestHeaders) { 70 | let newHeaders = removeHeader(details.requestHeaders, 'referer'); 71 | newHeaders = addHeader(newHeaders, 'Referer', getTwitterReferer()); 72 | 73 | return {requestHeaders: newHeaders}; 74 | } 75 | return {requestHeaders: details.requestHeaders}; 76 | } 77 | 78 | chrome.webRequest.onBeforeSendHeaders.addListener( 79 | onBeforeSendHeaders, 80 | { 81 | urls: urlsList, 82 | }, 83 | getBeforeSendExtraInfoSpec() 84 | ); 85 | 86 | function getBeforeSendExtraInfoSpec() { 87 | const extraInfoSpec = ['blocking', 'requestHeaders']; 88 | if ( 89 | chrome.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty( 90 | 'EXTRA_HEADERS' 91 | ) 92 | ) { 93 | extraInfoSpec.push('extraHeaders'); 94 | } 95 | return extraInfoSpec; 96 | } 97 | 98 | function removeHeader(headers, headerToRemove) { 99 | return headers.filter(({name}) => name.toLowerCase() != headerToRemove); 100 | } 101 | 102 | function addHeader(headers, name, value) { 103 | headers.push({name, value}); 104 | return headers; 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /src/medium-unlocker.js: -------------------------------------------------------------------------------- 1 | import ReactDOM from 'react-dom'; 2 | import React from 'react'; 3 | import App from './components/App/App.jsx'; 4 | import { getMeteredContentElement, hasMembershipPrompt, log } from './utils.js'; 5 | import { MEMBERSHIP_PROMPT_ID } from './constants.js'; 6 | 7 | let previousUrl = window.location.href; 8 | let loaderElement; 9 | const floatingContentDivId = 'mediumUnlimited'; 10 | const floatingButtonParent = document.createElement('div'); 11 | floatingButtonParent.setAttribute('id', floatingContentDivId); 12 | document.body.appendChild(floatingButtonParent); 13 | let yetToProcess = true; 14 | function registerListeners() { 15 | _attachFloatingButton(); 16 | /* Not the best way to detect url change but wrapping "history.pushState" or 17 | "history.replaceState" is not working. Needs debugging. 18 | */ 19 | setInterval(() => { 20 | if (window.location.href != previousUrl) { 21 | previousUrl = window.location.href; 22 | window.location.href = window.location.href; 23 | } 24 | unlockIfHidden(); 25 | }, 1500); 26 | } 27 | 28 | function unlockIfHidden() { 29 | if (!hasMembershipPrompt(document)) { 30 | log('Content is open, nothing to do'); 31 | return; 32 | } 33 | if (!yetToProcess) { 34 | return; 35 | } 36 | yetToProcess = false; 37 | log('Content is hidden'); 38 | _showLoader(); 39 | fetch(window.location.href).then(resp => resp.text()).then((resp) => { 40 | const html = getHTMLFromText(resp); 41 | const articleContent = getMeteredContentElement(html); 42 | if (articleContent) { 43 | const meteredContentElement = getMeteredContentElement(); 44 | meteredContentElement.parentElement.replaceChild(articleContent, meteredContentElement); 45 | articleContent.style.marginBottom = '5rem'; 46 | loadBrokenImages(); 47 | removePaywallSection(); 48 | _hideLoader(); 49 | restoreScrollPosition(); 50 | return; 51 | } 52 | }); 53 | } 54 | 55 | function restoreScrollPosition() { 56 | setTimeout(() => document.getElementsByTagName('h1')[0].scrollIntoView({behavior: 'smooth'}), 100); 57 | } 58 | 59 | function getHTMLFromText(text) { 60 | const html = document.createElement('html'); 61 | html.innerHTML = text; 62 | return html; 63 | } 64 | 65 | function removePaywallSection() { 66 | const paywallContainer = loaderElement.parentElement.parentElement; 67 | const fadeElement = paywallContainer.previousSibling; 68 | if (!fadeElement || fadeElement.parentElement.getAttribute('id') === 'root') { 69 | removePaywallSectionAlternative(); 70 | return; 71 | } 72 | paywallContainer.remove(); 73 | fadeElement.remove(); 74 | } 75 | 76 | function removePaywallSectionAlternative() { 77 | const fadeElement = loaderElement.previousSibling; 78 | fadeElement.remove(); 79 | } 80 | 81 | function loadBrokenImages() { 82 | Array.from(document.querySelectorAll('img')) 83 | .filter(i => !i.hasAttribute('src') && i.nextSibling.tagName === 'NOSCRIPT') 84 | .forEach(i => i.outerHTML = i.nextSibling.innerHTML); 85 | } 86 | 87 | function _attachFloatingButton() { 88 | ReactDOM.render(, floatingButtonParent); 89 | } 90 | 91 | function _removeFloatingButton() { 92 | ReactDOM.unmountComponentAtNode(floatingButtonParent); 93 | } 94 | 95 | function _hideLoader() { 96 | loaderElement.parentElement.removeChild(loaderElement); 97 | } 98 | 99 | function _showLoader() { 100 | const loaderUrl = chrome.extension.getURL('static/loader.gif'); 101 | loaderElement = document.createElement('div'); 102 | loaderElement.innerHTML = ` 103 |
104 | Unlocking content, please wait... 105 | 108 |
109 | `; 110 | loaderElement.src = loaderUrl; 111 | let membershipPromtElement = document.getElementById( 112 | MEMBERSHIP_PROMPT_ID 113 | ); 114 | if (!membershipPromtElement) { 115 | const article = document.getElementsByTagName('article')[0]; 116 | membershipPromtElement = article.nextSibling.nextSibling; 117 | } 118 | membershipPromtElement.parentElement.replaceChild( 119 | loaderElement, 120 | membershipPromtElement 121 | ); 122 | if (document.getElementsByTagName('footer')[0]) { 123 | document.getElementsByTagName('footer')[0].style = 'margin-top: 100px;'; 124 | } 125 | return loaderElement; 126 | } 127 | 128 | registerListeners(); -------------------------------------------------------------------------------- /website/_sass/_color.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Website colors. Determine color palette for dark and light theme 3 | */ 4 | 5 | @charset "utf-8"; 6 | 7 | /** 8 | * Light color palette 9 | */ 10 | $l-text-color: #111; 11 | $l-link-color: #909090; 12 | $l-background-color: #fdfdfd; 13 | $l-brand-color: #2a7ae2; 14 | $l-grey-color: #828282; 15 | $l-grey-color-light: lighten($l-grey-color, 40%); 16 | $l-grey-color-dark: darken($l-grey-color, 25%); 17 | $l-code: #EEF; 18 | $l-crimson: #DC143C; 19 | $l-nav: $l-link-color; 20 | $l-page: $l-link-color; 21 | 22 | /** 23 | * Dark color palette 24 | */ 25 | $d-text-color: #e7e7e7; 26 | $d-link-color: #cccccc; 27 | $d-background-color: #191919; 28 | $d-brand-color: #2a7ae2; 29 | $d-grey-color: #A7A7A7; 30 | $d-grey-color-light: lighten($l-grey-color, 40%); 31 | $d-grey-color-dark: darken($l-grey-color, 25%); 32 | $d-code: #2f2f33; 33 | $d-crimson: #DC143C; 34 | $d-nav: $d-link-color; 35 | $d-page: $d-link-color; 36 | 37 | /** 38 | * Light theme color definitions 39 | */ 40 | body.light { 41 | color: $l-text-color; 42 | background-color: $l-background-color; 43 | 44 | /** 45 | * Links 46 | */ 47 | a { 48 | color: $l-link-color !important; 49 | 50 | &:visited { 51 | color: darken($l-brand-color, 50%); 52 | } 53 | 54 | &:hover { 55 | color: darken($l-link-color, 50%) !important; 56 | border-color: darken($l-link-color, 15%); 57 | } 58 | 59 | &.page-link{ 60 | &:hover { 61 | color: $l-text-color; 62 | border-color: darken($l-link-color, 50%); 63 | } 64 | } 65 | &.postLink{ 66 | color: darken($l-link-color, 50%) !important; 67 | 68 | &:visited { 69 | color: $l-crimson !important; 70 | border-color: $l-crimson; 71 | } 72 | } 73 | &.post-title-link{ 74 | color: darken($l-link-color, 50%) !important; 75 | 76 | &:visited { 77 | color: $l-crimson !important; 78 | border-color: $l-crimson; 79 | } 80 | } 81 | } 82 | 83 | blockquote { 84 | color: $l-grey-color; 85 | border-left-color: $l-grey-color-light; 86 | } 87 | 88 | /** 89 | * Code formatting 90 | */ 91 | pre, 92 | code { 93 | border-color: $l-grey-color-light; 94 | background-color: $l-code; 95 | } 96 | 97 | /** 98 | * Icons 99 | */ 100 | .icon > svg path { 101 | fill: $l-grey-color; 102 | } 103 | 104 | /** 105 | * Site header 106 | */ 107 | .site-header { 108 | border-top-color: $l-grey-color-dark; 109 | border-bottom-color: $l-grey-color-light; 110 | } 111 | 112 | .site-title, 113 | .site-title:visited { 114 | color: $l-grey-color-dark; 115 | } 116 | 117 | .site-navigation { 118 | color: $l-nav; 119 | } 120 | 121 | .page-tagline { 122 | color: $l-page; 123 | } 124 | 125 | .page-link { 126 | color: $l-page; 127 | } 128 | 129 | .site-nav .page-link { 130 | color: $l-text-color; 131 | } 132 | 133 | @include media-query($on-palm) { 134 | background-color: $l-background-color; 135 | border: 1px solid $l-grey-color-light; 136 | 137 | .menu-icon > svg path { 138 | fill: $l-grey-color-dark; 139 | } 140 | } 141 | 142 | /** 143 | * Site footer 144 | */ 145 | .site-footer { 146 | border-top-color: $l-grey-color-light; 147 | } 148 | 149 | .footer-col-wrapper { 150 | color: $l-grey-color; 151 | } 152 | } 153 | 154 | /** 155 | * Dark theme color definitions 156 | */ 157 | body.dark { 158 | color: $d-text-color; 159 | background-color: $d-background-color; 160 | 161 | /** 162 | * Links 163 | */ 164 | a { 165 | color: $d-link-color !important; 166 | 167 | &:visited { 168 | color: darken($d-brand-color, 50%); 169 | } 170 | 171 | &:hover { 172 | color: darken($d-link-color, 50%) !important; 173 | border-color: darken($d-link-color, 15%); 174 | } 175 | 176 | &.page-link{ 177 | &:hover { 178 | color: $d-text-color; 179 | border-color: darken($d-link-color, 50%); 180 | } 181 | } 182 | &.postLink{ 183 | color: darken($d-link-color, 50%) !important; 184 | 185 | &:visited { 186 | color: $d-crimson !important; 187 | border-color: $d-crimson; 188 | } 189 | } 190 | &.post-title-link{ 191 | color: darken($d-link-color, 50%) !important; 192 | 193 | &:visited { 194 | color: $d-crimson !important; 195 | border-color: $d-crimson; 196 | } 197 | } 198 | } 199 | 200 | blockquote { 201 | color: $d-grey-color; 202 | border-left-color: $d-grey-color-light; 203 | } 204 | 205 | /** 206 | * Code formatting 207 | */ 208 | pre, 209 | code { 210 | border-color: $d-grey-color; 211 | background-color: $d-code; 212 | } 213 | 214 | /** 215 | * Icons 216 | */ 217 | .icon > svg path { 218 | fill: $d-grey-color; 219 | } 220 | 221 | /** 222 | * Site header 223 | */ 224 | .site-header { 225 | border-top-color: $d-grey-color-dark; 226 | border-bottom-color: $d-grey-color-light; 227 | } 228 | 229 | .site-title, 230 | .site-title:visited { 231 | color: $d-grey-color-light; 232 | } 233 | 234 | .site-navigation { 235 | color: $d-nav; 236 | } 237 | 238 | .page-tagline { 239 | color: $d-page; 240 | } 241 | 242 | .page-link { 243 | color: $d-page; 244 | } 245 | 246 | .site-nav .page-link { 247 | color: $d-text-color; 248 | } 249 | 250 | @include media-query($on-palm) { 251 | background-color: $d-background-color; 252 | border: 1px solid $d-grey-color-light; 253 | 254 | .menu-icon > svg path { 255 | fill: $d-grey-color-dark; 256 | } 257 | } 258 | 259 | /** 260 | * Page content 261 | */ 262 | .post-meta { 263 | color: $d-grey-color; 264 | } 265 | 266 | /** 267 | * Site footer 268 | */ 269 | .site-footer { 270 | border-top-color: $d-grey-color-light; 271 | } 272 | 273 | .footer-col-wrapper { 274 | color: $d-grey-color; 275 | } 276 | } 277 | -------------------------------------------------------------------------------- /website/index.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 | 5 |
6 | 7 | 8 | {% for post in paginator.posts%} 9 |
10 | 12 | 15 |
16 |
17 | {{post.title}} 18 |
19 |
20 | {{ post.content | strip_html | truncate:200}} 21 |
22 |
23 | 24 | {% endfor %} 25 | {% if paginator.total_pages > 1 %} 26 | 45 | {% endif %} 46 | 57 | 58 |
59 | 60 |
61 |

The browser extension/addon to access the medium.com premium articles without membership subscription.

62 | 63 |

This tool helps you overcome the 3 article/month limit on medium.com and allows you to read unlimited articles. Just install the extension, keep reading medium.com. No more action needed, everything is taken care for you! :)

64 | 65 |

The extension now supports identifying articles of external publishers on medium.com by suggesting a link to read full content with the help of a Google search.

66 |

***Permission to access google.com is required for the above use case***

67 | 68 |

Custom domains supported are:

69 |
    70 |
  • https://*.medium.com
  • 71 |
  • https://towardsdatascience.com
  • 72 |
  • https://hackernoon.com
  • 73 |
  • https://medium.freecodecamp.org
  • 74 |
  • https://psiloveyou.xyz
  • 75 |
  • https://betterhumans.coach.me
  • 76 |
  • https://codeburst.io
  • 77 |
  • https://theascent.pub
  • 78 |
  • https://medium.mybridge.co
  • 79 |
  • https://uxdesign.cc
  • 80 |
  • https://levelup.gitconnected.com
  • 81 |
  • https://itnext.io
  • 82 |
  • https://entrepreneurshandbook.co
  • 83 |
  • https://proandroiddev.com
  • 84 |
  • https://blog.prototypr.io
  • 85 |
  • https://thebolditalic.com
  • 86 |
  • https://blog.usejournal.com
  • 87 |
  • https://blog.angularindepth.com
  • 88 |
  • https://uxplanet.org
  • 89 |
  • https://instagram-engineering.com
  • 90 |
  • https://calia.me
  • 91 |
  • https://productcoalition.com
  • 92 |
  • https://engineering.opsgenie.com
  • 93 |
  • https://android.jlelse.eu
  • 94 |
  • https://blog.bitsrc.io
  • 95 |
  • https://blog.devartis.com
  • 96 |
  • https://blog.maddevs.io
  • 97 |
  • https://blog.getambassador.io
  • 98 |
  • https://uxplanet.org
  • 99 |
  • https://instagram-engineering.com
  • 100 |
  • https://calia.me
  • 101 |
  • https://productcoalition.com
  • 102 |
  • https://engineering.opsgenie.com
  • 103 |
  • https://android.jlelse.eu
  • 104 |
  • https://robinhood.engineering
  • 105 |
  • https://blog.hipolabs.com
  • 106 |
  • https://ux.shopify.com
  • 107 |
  • https://engineering.talkdesk.com
  • 108 |
  • https://blog.codegiant.io
  • 109 |
  • https://tech.olx.com
  • 110 |
  • https://netflixtechblog.com
  • 111 |
  • https://hackingandslacking.com
  • 112 |
  • https://blog.kotlin-academy.com
  • 113 |
  • https://blog.securityevaluators.com
  • 114 |
  • https://blog.kubernauts.io
  • 115 |
  • https://blog.coffeeapplied.com
  • 116 |
  • https://unbounded.io
  • 117 |
  • https://writingcooperative.com
  • 118 |
  • https://blog.echobind.com
  • 119 |
  • https://*.plainenglish.io
  • 120 |
  • https://*.betterprogramming.pub
  • 121 |
  • https://blog.doit-intl.com
  • 122 |
  • https://eand.co
  • 123 |
  • https://techuisite.com
  • 124 |
  • https://levelupprogramming.net
  • 125 |
  • https://betterhumans.pub
  • 126 |
  • https://betterprogramming.pub
  • 127 |
  • https://pub.towardsai.net
  • 128 |
  • https://bettermarketing.pub
  • 129 |
  • https://themakingofamillionaire.com
  • 130 |
  • https://medium.datadriveninvestor.com
  • 131 |
  • https://bootcamp.uxdesign.cc
  • 132 |
  • https://*.baos.pub
  • 133 |
  • https://www.inbitcoinwetrust.net
  • 134 |
  • https://blog.prototypr.io
  • 135 |
  • https://blog.devgenius.io/
  • 136 |
137 |

Please get in touch if you need any other custom medium domain supported.

138 | 139 |

This extension is open sourced here - https://github.com/manojVivek/medium-unlimited

140 | 141 |
142 | 143 | 144 |
145 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Medium Unlimited: Read paid content for free!", 3 | "description": "Unlocks medium.com for unlimited reads, no membership required", 4 | "short_name": "Medium Unlimited", 5 | "version": "1.20.0", 6 | "manifest_version": 2, 7 | "optional_permissions": [ 8 | "*://*/*" 9 | ], 10 | "background": { 11 | "scripts": [ 12 | "background.bundle.js" 13 | ] 14 | }, 15 | "browser_action": { 16 | "default_icon": "static/logo_128.png", 17 | "default_title": "Unlock Medium.com Article" 18 | }, 19 | "content_scripts": [ 20 | { 21 | "matches": [ 22 | "https://medium.com/*", 23 | "https://*.medium.com/*", 24 | "https://towardsdatascience.com/*", 25 | "https://hackernoon.com/*", 26 | "https://medium.freecodecamp.org/*", 27 | "https://psiloveyou.xyz/*", 28 | "https://betterhumans.coach.me/*", 29 | "https://codeburst.io/*", 30 | "https://theascent.pub/*", 31 | "https://medium.mybridge.co/*", 32 | "https://uxdesign.cc/*", 33 | "https://levelup.gitconnected.com/*", 34 | "https://itnext.io/*", 35 | "https://entrepreneurshandbook.co/*", 36 | "https://proandroiddev.com/*", 37 | "https://blog.prototypr.io/*", 38 | "https://thebolditalic.com/*", 39 | "https://blog.usejournal.com/*", 40 | "https://blog.angularindepth.com/*", 41 | "https://blog.bitsrc.io/*", 42 | "https://blog.devartis.com/*", 43 | "https://blog.maddevs.io/*", 44 | "https://blog.getambassador.io/*", 45 | "https://uxplanet.org/*", 46 | "https://instagram-engineering.com/*", 47 | "https://calia.me/*", 48 | "https://productcoalition.com/*", 49 | "https://engineering.opsgenie.com/*", 50 | "https://android.jlelse.eu/*", 51 | "https://robinhood.engineering/*", 52 | "https://blog.hipolabs.com/*", 53 | "https://ux.shopify.com/*", 54 | "https://engineering.talkdesk.com/*", 55 | "https://blog.codegiant.io/*", 56 | "https://tech.olx.com/*", 57 | "https://netflixtechblog.com/*", 58 | "https://hackingandslacking.com/*", 59 | "https://blog.kotlin-academy.com/*", 60 | "https://blog.securityevaluators.com/*", 61 | "https://blog.kubernauts.io/*", 62 | "https://blog.coffeeapplied.com/*", 63 | "https://unbounded.io/*", 64 | "https://writingcooperative.com/*", 65 | "https://blog.echobind.com/*", 66 | "https://*.plainenglish.io/*", 67 | "https://*.betterprogramming.pub/*", 68 | "https://blog.doit-intl.com/*", 69 | "https://eand.co/*", 70 | "https://techuisite.com/*", 71 | "https://levelupprogramming.net/*", 72 | "https://betterhumans.pub/*", 73 | "https://betterprogramming.pub/*", 74 | "https://pub.towardsai.net/*", 75 | "https://bettermarketing.pub/*", 76 | "https://themakingofamillionaire.com/*", 77 | "https://medium.datadriveninvestor.com/*", 78 | "https://bootcamp.uxdesign.cc/*", 79 | "https://*.baos.pub/*", 80 | "https://www.inbitcoinwetrust.net/*", 81 | "https://blog.prototypr.io/*", 82 | "https://blog.devgenius.io/*" 83 | ], 84 | "js": ["main.bundle.js"] 85 | } 86 | ], 87 | "icons": { 88 | "16": "static/logo_16.png", 89 | "48": "static/logo_48.png", 90 | "128": "static/logo_128.png" 91 | }, 92 | "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", 93 | "permissions": [ 94 | "webRequest", 95 | "webRequestBlocking", 96 | "contextMenus", 97 | "activeTab", 98 | "https://medium.com/*", 99 | "https://towardsdatascience.com/*", 100 | "https://hackernoon.com/*", 101 | "https://medium.freecodecamp.org/*", 102 | "https://psiloveyou.xyz/*", 103 | "https://betterhumans.coach.me/*", 104 | "https://codeburst.io/*", 105 | "https://theascent.pub/*", 106 | "https://*.medium.com/*", 107 | "https://medium.mybridge.co/*", 108 | "https://uxdesign.cc/*", 109 | "https://levelup.gitconnected.com/*", 110 | "https://itnext.io/*", 111 | "https://entrepreneurshandbook.co/*", 112 | "https://proandroiddev.com/*", 113 | "https://blog.prototypr.io/*", 114 | "https://thebolditalic.com/*", 115 | "https://blog.usejournal.com/*", 116 | "https://blog.angularindepth.com/*", 117 | "https://blog.bitsrc.io/*", 118 | "https://blog.devartis.com/*", 119 | "https://blog.maddevs.io/*", 120 | "https://blog.getambassador.io/*", 121 | "https://uxplanet.org/*", 122 | "https://instagram-engineering.com/*", 123 | "https://calia.me/*", 124 | "https://productcoalition.com/*", 125 | "https://engineering.opsgenie.com/*", 126 | "https://android.jlelse.eu/*", 127 | "https://robinhood.engineering/*", 128 | "https://blog.hipolabs.com/*", 129 | "https://ux.shopify.com/*", 130 | "https://engineering.talkdesk.com/*", 131 | "https://blog.codegiant.io/*", 132 | "https://tech.olx.com/*", 133 | "https://netflixtechblog.com/*", 134 | "https://hackingandslacking.com/*", 135 | "https://blog.kotlin-academy.com/*", 136 | "https://blog.securityevaluators.com/*", 137 | "https://blog.kubernauts.io/*", 138 | "https://blog.coffeeapplied.com/*", 139 | "https://unbounded.io/*", 140 | "https://writingcooperative.com/*", 141 | "https://blog.echobind.com/*", 142 | "https://*.plainenglish.io/*", 143 | "https://*.betterprogramming.pub/*", 144 | "https://blog.doit-intl.com/*", 145 | "https://eand.co/*", 146 | "https://techuisite.com/*", 147 | "https://levelupprogramming.net/*", 148 | "https://betterhumans.pub/*", 149 | "https://betterprogramming.pub/*", 150 | "https://pub.towardsai.net/*", 151 | "https://bettermarketing.pub/*", 152 | "https://themakingofamillionaire.com/*", 153 | "https://medium.datadriveninvestor.com/*", 154 | "https://bootcamp.uxdesign.cc/*", 155 | "https://*.baos.pub/*", 156 | "https://www.inbitcoinwetrust.net/*", 157 | "https://blog.prototypr.io/*", 158 | "https://blog.devgenius.io/*" 159 | ], 160 | "web_accessible_resources": ["static/*"] 161 | } 162 | -------------------------------------------------------------------------------- /src/components/SpreadTheWord/SpreadTheWord.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import classNames from 'classnames'; 3 | 4 | import styles from './SpreadTheWord.css'; 5 | import {track} from '../../analytics'; 6 | 7 | class SpreadTheWord extends React.Component { 8 | constructor(props) { 9 | super(props); 10 | } 11 | 12 | render() { 13 | return ( 14 |
15 |
16 | Finding Medium-Unlimited extension helpful?
17 | Please help spread the word! 18 |
19 |
20 |
21 | {this._getTwitterIcon()} 22 |
23 |
24 | {this._getFacebookIcon()} 25 |
26 |
27 | {this._getLinkedinIcon()} 28 |
29 |
30 | {this._getGplusIcon()} 31 |
32 |
33 |
34 | ); 35 | } 36 | 37 | _getShareContent = () => { 38 | return 'Read medium.com Membership articles for free. Use this browser extension - '; 39 | }; 40 | 41 | _getShareUrl = source => { 42 | const url = 43 | 'https://github.com/manojVivek/medium-unlimited'; 44 | if (source) { 45 | return url + '?source=' + source; 46 | } 47 | return url; 48 | }; 49 | 50 | _getTwitterIcon = () => { 51 | return ( 52 | { 55 | track('TWITTER_SHARE_CLICKED'); 56 | window.open( 57 | 'https://twitter.com/intent/tweet?text=' + 58 | this._getShareContent() + 59 | this._getShareUrl('twitter'), 60 | '_blank' 61 | ); 62 | }} 63 | > 64 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 81 | 82 | 83 | 84 | ); 85 | }; 86 | 87 | _getFacebookIcon = () => { 88 | return ( 89 | { 92 | track('FB_SHARE_CLICKED'); 93 | window.open( 94 | 'https://www.facebook.com/sharer/sharer.php?u=' + 95 | this._getShareUrl('facebook') + 96 | '"e=' + 97 | this._getShareContent(), 98 | '_blank' 99 | ); 100 | }} 101 | > 102 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 119 | 120 | 121 | 122 | ); 123 | }; 124 | 125 | _getLinkedinIcon = () => { 126 | return ( 127 | { 130 | track('LINKEDIN_SHARE_CLICKED'); 131 | window.open( 132 | 'https://www.linkedin.com/shareArticle?mini=true&url=' + 133 | this._getShareUrl('linkedin') + 134 | '&summary=' + 135 | this._getShareContent(), 136 | '_blank' 137 | ); 138 | }} 139 | > 140 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 157 | 158 | 159 | 160 | ); 161 | }; 162 | 163 | _getGplusIcon = () => { 164 | return ( 165 | { 168 | track('GPLUS_SHARE_CLICKED'); 169 | window.open( 170 | 'https://plus.google.com/share?url=' + 171 | this._getShareUrl('googleplus'), 172 | '_blank' 173 | ); 174 | }} 175 | > 176 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 196 | 197 | 198 | 199 | 200 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | ); 211 | }; 212 | } 213 | 214 | export default SpreadTheWord; 215 | -------------------------------------------------------------------------------- /website/css/style.scss: -------------------------------------------------------------------------------- 1 | --- 2 | # Only the main Sass file needs front matter (the dashes are enough) 3 | --- 4 | @charset "utf-8"; 5 | 6 | 7 | 8 | // Our variables 9 | $base-font-family: "PT Sans", Helvetica, Arial, sans-serif; 10 | $base-font-size: 16px; 11 | $base-font-weight: 400; 12 | $small-font-size: $base-font-size * 0.875; 13 | $base-line-height: 1.5; 14 | 15 | $spacing-unit: 30px; 16 | // Width of the content area 17 | $content-width: 800px; 18 | 19 | $on-palm: 600px; 20 | $on-laptop: 800px; 21 | 22 | 23 | 24 | // Use media queries like this: 25 | // @include media-query($on-palm) { 26 | // .wrapper { 27 | // padding-right: $spacing-unit / 2; 28 | // padding-left: $spacing-unit / 2; 29 | // } 30 | // } 31 | @mixin media-query($device) { 32 | @media screen and (max-width: $device) { 33 | @content; 34 | } 35 | } 36 | 37 | 38 | 39 | // Import partials from `sass_dir` (defaults to `_sass`) 40 | @import 41 | "base", 42 | "layout", 43 | "syntax-highlighting", 44 | "color" 45 | ; 46 | 47 | 48 | /** 49 | * Reset some basic elements 50 | */ 51 | body, h1, h2, h3, h4, h5, h6, 52 | p, blockquote, pre, hr, 53 | dl, dd, ol, ul, figure { 54 | margin: 0; 55 | padding: 0; 56 | } 57 | 58 | 59 | 60 | /** 61 | * Basic styling 62 | */ 63 | body { 64 | font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family; 65 | -webkit-text-size-adjust: 100%; 66 | -webkit-font-feature-settings: "kern" 1; 67 | -moz-font-feature-settings: "kern" 1; 68 | -o-font-feature-settings: "kern" 1; 69 | font-feature-settings: "kern" 1; 70 | font-kerning: normal; 71 | } 72 | 73 | 74 | 75 | /** 76 | * Set `margin-bottom` to maintain vertical rhythm 77 | */ 78 | h1, h2, h3, h4, h5, h6, 79 | p, blockquote, pre, 80 | ul, ol, dl, figure, 81 | %vertical-rhythm { 82 | margin-bottom: $spacing-unit / 2; 83 | } 84 | 85 | 86 | 87 | /** 88 | * Images 89 | */ 90 | img { 91 | max-width: 100%; 92 | vertical-align: middle; 93 | } 94 | 95 | 96 | 97 | /** 98 | * Figures 99 | */ 100 | figure > img { 101 | display: block; 102 | } 103 | 104 | figcaption { 105 | font-size: $small-font-size; 106 | } 107 | 108 | 109 | 110 | /** 111 | * Lists 112 | */ 113 | ul, ol { 114 | margin-left: $spacing-unit; 115 | } 116 | 117 | li { 118 | > ul, 119 | > ol { 120 | margin-bottom: 0; 121 | } 122 | } 123 | 124 | 125 | 126 | /** 127 | * Headings 128 | */ 129 | h1, h2, h3, h4, h5, h6 { 130 | font-weight: $base-font-weight; 131 | } 132 | 133 | 134 | 135 | /** 136 | * Links 137 | */ 138 | a { 139 | text-decoration: none; 140 | 141 | &:hover { 142 | border-bottom: 1px dotted; 143 | } 144 | 145 | &.page-link:hover { 146 | border-bottom: 1px dotted; 147 | } 148 | &.postLink:hover{ 149 | border-bottom: 1px dotted; 150 | } 151 | &.post-title-link:hover{ 152 | border-bottom: 1px dotted !important; 153 | } 154 | } 155 | 156 | 157 | 158 | /** 159 | * Blockquotes 160 | */ 161 | blockquote { 162 | border-left: 4px solid; 163 | padding-left: $spacing-unit / 2; 164 | font-size: 18px; 165 | letter-spacing: -1px; 166 | font-style: italic; 167 | 168 | > :last-child { 169 | margin-bottom: 0; 170 | } 171 | } 172 | 173 | 174 | 175 | /** 176 | * Code formatting 177 | */ 178 | pre, 179 | code { 180 | font-size: 15px; 181 | border: 1px solid; 182 | border-radius: 3px; 183 | } 184 | 185 | code { 186 | padding: 1px 5px; 187 | } 188 | 189 | pre { 190 | padding: 8px 12px; 191 | overflow-x: auto; 192 | 193 | > code { 194 | border: 0; 195 | padding-right: 0; 196 | padding-left: 0; 197 | } 198 | } 199 | 200 | 201 | 202 | /** 203 | * Wrapper 204 | */ 205 | .wrapper { 206 | max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2)); 207 | max-width: calc(#{$content-width} - (#{$spacing-unit} * 2)); 208 | margin-right: auto; 209 | margin-left: auto; 210 | padding-right: $spacing-unit; 211 | padding-left: $spacing-unit; 212 | @extend %clearfix; 213 | 214 | @include media-query($on-laptop) { 215 | max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit})); 216 | max-width: calc(#{$content-width} - (#{$spacing-unit})); 217 | padding-right: $spacing-unit / 2; 218 | padding-left: $spacing-unit / 2; 219 | } 220 | } 221 | 222 | 223 | 224 | /** 225 | * Clearfix 226 | */ 227 | %clearfix { 228 | 229 | &:after { 230 | content: ""; 231 | display: table; 232 | clear: both; 233 | } 234 | } 235 | 236 | 237 | 238 | /** 239 | * Icons 240 | */ 241 | .icon { 242 | 243 | > svg { 244 | display: inline-block; 245 | width: 16px; 246 | height: 16px; 247 | vertical-align: middle; 248 | } 249 | } 250 | 251 | .post { 252 | font-family: "Source Sans Pro"; 253 | font-size: 18px; 254 | font-weight: 300; 255 | padding-top: 0; 256 | } 257 | .home{ 258 | padding-bottom: 5em; 259 | } 260 | .download { 261 | padding: 10px; 262 | } 263 | .authorKeyword { 264 | text-transform: uppercase; 265 | font-size: 16px; 266 | letter-spacing: 2px; 267 | text-indent: 2px; 268 | padding-top:0.5em; 269 | } 270 | .writtenBy { 271 | letter-spacing: 0; 272 | text-indent: 0; 273 | text-transform: uppercase; 274 | } 275 | .archive-intro { 276 | font-size: 14px; 277 | text-transform: uppercase; 278 | letter-spacing: 2px; 279 | text-indent: 2px; 280 | } 281 | .archiveIntro { 282 | text-align: center; 283 | } 284 | .hint { 285 | text-transform: uppercase; 286 | font-size: 11px; 287 | letter-spacing: 2px; 288 | text-indent: 2px; 289 | } 290 | .example { 291 | font-family: 'Menlo'; 292 | padding: 10px; 293 | } 294 | .manual { 295 | text-transform: uppercase; 296 | font-size: 16px; 297 | letter-spacing: 2px; 298 | text-indent: 2px; 299 | } 300 | .postContent { 301 | padding-top: 3.5em; 302 | text-align: center; 303 | } 304 | .postDate { 305 | float: left; 306 | text-transform: uppercase; 307 | font-family: "Source Sans Pro"; 308 | font-size: 16px; 309 | font-weight: 300; 310 | letter-spacing: 2px; 311 | text-indent: 2px; 312 | } 313 | .postTag { 314 | float: right; 315 | } 316 | .postTitle { 317 | font-weight: 400; 318 | text-align: center; 319 | text-transform: uppercase; 320 | letter-spacing: 3px; 321 | text-indent: 3px; 322 | } 323 | /** 324 | * Site header 325 | */ 326 | .site-header { 327 | border-top: 5px solid; 328 | border-bottom: 1px solid; 329 | min-height: 56px; 330 | // Positioning context for the mobile navigation icon 331 | position: relative; 332 | } 333 | .site-title { 334 | font-size: 64px; 335 | font-weight: 100; 336 | font-family: 'PT Sans'; 337 | text-transform: capitalize; 338 | font-weight: 500; 339 | margin-top: 0.5em; 340 | } 341 | .site-description { 342 | font-size: 14px; 343 | letter-spacing: 2px; 344 | text-indent: 6px; 345 | font-family: 'Josefin Sans'; 346 | } 347 | .exclamationMark { 348 | padding-left: 2em; 349 | padding-right: 2em; 350 | } 351 | .site-navigation { 352 | text-transform: uppercase; 353 | font-size: 14px; 354 | letter-spacing: 2px; 355 | text-indent: 6px; 356 | font-family: 'Josefin Sans'; 357 | font-weight: 500; 358 | padding-top: 5em; 359 | text-align: center; 360 | } 361 | .page-title { 362 | text-transform: uppercase; 363 | letter-spacing: 2px; 364 | text-indent: 2px; 365 | font-family: "PT Sans"; 366 | font-size: 12px; 367 | text-align:center; 368 | } 369 | .page-tagline { 370 | font-size: 18px; 371 | font-family: "PT Sans"; 372 | text-align: center; 373 | text-transform: lowercase; 374 | } 375 | .site-nav { 376 | .page-link { 377 | line-height: $base-line-height; 378 | // Gaps between nav items, but not on the last one 379 | &:not(:last-child) { 380 | margin-right: 20px; 381 | } 382 | } 383 | @include media-query($on-palm) { 384 | position: absolute; 385 | top: 9px; 386 | right: $spacing-unit / 2; 387 | border-radius: 5px; 388 | text-align: right; 389 | .menu-icon { 390 | display: block; 391 | float: right; 392 | width: 36px; 393 | height: 26px; 394 | line-height: 0; 395 | padding-top: 10px; 396 | text-align: center; 397 | > svg { 398 | width: 18px; 399 | height: 15px; 400 | } 401 | } 402 | .trigger { 403 | clear: both; 404 | display: none; 405 | } 406 | &:hover .trigger { 407 | display: block; 408 | padding-bottom: 5px; 409 | } 410 | .page-link { 411 | display: block; 412 | padding: 5px 10px; 413 | &:not(:last-child) { 414 | margin-right: 0; 415 | } 416 | margin-left: 20px; 417 | } 418 | } 419 | } 420 | /** 421 | * Site footer 422 | */ 423 | .site-footer { 424 | border-top: 1px solid; 425 | padding: $spacing-unit / 3 0; 426 | } 427 | .footer-heading { 428 | font-size: 18px; 429 | margin-bottom: $spacing-unit / 2; 430 | } 431 | .contact-list, 432 | .social-media-list { 433 | list-style: none; 434 | margin-left: 0; 435 | } 436 | .small-site-title { 437 | font-family: "PT Sans"; 438 | } 439 | .footer-col-wrapper { 440 | font-size: 15px; 441 | margin-left: -$spacing-unit / 2; 442 | @extend %clearfix; 443 | } 444 | .footer-content { 445 | font-family: "Josefin Sans"; 446 | font-weight: 300; 447 | letter-spacing: 1px; 448 | } 449 | .footer-col { 450 | float: left; 451 | margin-bottom: $spacing-unit / 30; 452 | padding-left: $spacing-unit / 2; 453 | } 454 | .footer-col-1 { 455 | width: -webkit-calc(35% - (#{$spacing-unit} / 2)); 456 | width: calc(35% - (#{$spacing-unit} / 2)); 457 | } 458 | .footer-col-2 { 459 | width: -webkit-calc(20% - (#{$spacing-unit} / 2)); 460 | width: calc(20% - (#{$spacing-unit} / 2)); 461 | } 462 | .footer-col-3 { 463 | width: -webkit-calc(45% - (#{$spacing-unit} / 2)); 464 | width: calc(45% - (#{$spacing-unit} / 2)); 465 | } 466 | @include media-query($on-laptop) { 467 | .footer-col-1, 468 | .footer-col-2 { 469 | width: -webkit-calc(50% - (#{$spacing-unit} / 2)); 470 | width: calc(50% - (#{$spacing-unit} / 2)); 471 | } 472 | .footer-col-3 { 473 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 474 | width: calc(100% - (#{$spacing-unit} / 2)); 475 | } 476 | } 477 | @include media-query($on-palm) { 478 | .footer-col { 479 | float: none; 480 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 481 | width: calc(100% - (#{$spacing-unit} / 2)); 482 | } 483 | } 484 | /** 485 | * Page content 486 | */ 487 | .page-content { 488 | padding: 0; 489 | min-height: 500px; 490 | } 491 | .page-heading { 492 | font-size: 20px; 493 | } 494 | .post-list { 495 | margin-left: 0; 496 | list-style: none; 497 | > li { 498 | margin-bottom: $spacing-unit; 499 | } 500 | } 501 | .post-meta { 502 | font-size: $small-font-size; 503 | text-transform: uppercase; 504 | font-size: 16px; 505 | } 506 | .post-link { 507 | display: block; 508 | font-size: 24px; 509 | } 510 | /** 511 | * Posts 512 | */ 513 | .post-header { 514 | margin-bottom: $spacing-unit; 515 | } 516 | .post-title { 517 | font-size: 62px; 518 | 519 | text-align: center; 520 | font-family: "PT Sans"; 521 | font-weight: 900; 522 | @include media-query($on-laptop) { 523 | font-size: 36px; 524 | } 525 | } 526 | .post-content { 527 | margin-bottom: $spacing-unit; 528 | padding-bottom: 3em !important; 529 | p { 530 | font-size: 1.5rem; 531 | } 532 | h2 { 533 | font-size: 32px; 534 | @include media-query($on-laptop) { 535 | font-size: 28px; 536 | } 537 | } 538 | h3 { 539 | font-size: 26px; 540 | @include media-query($on-laptop) { 541 | font-size: 22px; 542 | } 543 | } 544 | h4 { 545 | font-size: 20px; 546 | @include media-query($on-laptop) { 547 | font-size: 18px; 548 | } 549 | } 550 | } 551 | 552 | /** 553 | * Pagination 554 | */ 555 | .pagination { 556 | padding-top: 3.5em; 557 | text-align: center; 558 | } 559 | .paginationLink { 560 | border: 0; 561 | display: inline-block; 562 | padding: 5px; 563 | text-decoration: none; 564 | transition: color 200ms ease-out; 565 | 566 | &:hover, 567 | &:active, 568 | &:focus { 569 | border: 0; 570 | } 571 | } 572 | .paginationLinkCurrent { 573 | font-style: normal; 574 | } 575 | 576 | .postNavigation { 577 | align-items: center; 578 | display: flex; 579 | justify-content: space-between; 580 | padding-bottom: 3em; 581 | 582 | a:only-child { 583 | width: 100%; 584 | } 585 | } 586 | .postPrev, 587 | .postNext { 588 | display: inline-block; 589 | width: 49%; 590 | &:hover, 591 | &:active, 592 | &:focus { 593 | border: 0; 594 | } 595 | } 596 | .postNext { 597 | text-align: right; 598 | } 599 | 600 | /** 601 | * Syntax highlighting styles 602 | */ 603 | .highlight { 604 | @extend %vertical-rhythm; 605 | 606 | .c { color: #998; font-style: italic } // Comment 607 | .err { color: #a61717; background-color: #e3d2d2 } // Error 608 | .k { font-weight: bold } // Keyword 609 | .o { font-weight: bold } // Operator 610 | .cm { color: #998; font-style: italic } // Comment.Multiline 611 | .cp { color: #999; font-weight: bold } // Comment.Preproc 612 | .c1 { color: #998; font-style: italic } // Comment.Single 613 | .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special 614 | .gd { color: #000; background-color: #fdd } // Generic.Deleted 615 | .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific 616 | .ge { font-style: italic } // Generic.Emph 617 | .gr { color: #a00 } // Generic.Error 618 | .gh { color: #999 } // Generic.Heading 619 | .gi { color: #000; background-color: #dfd } // Generic.Inserted 620 | .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific 621 | .go { color: #888 } // Generic.Output 622 | .gp { color: #555 } // Generic.Prompt 623 | .gs { font-weight: bold } // Generic.Strong 624 | .gu { color: #909090 } // Generic.Subheading 625 | .gt { color: #a00 } // Generic.Traceback 626 | .kc { font-weight: bold } // Keyword.Constant 627 | .kd { font-weight: bold } // Keyword.Declaration 628 | .kp { font-weight: bold } // Keyword.Pseudo 629 | .kr { font-weight: bold } // Keyword.Reserved 630 | .kt { color: #458; font-weight: bold } // Keyword.Type 631 | .m { color: #099 } // Literal.Number 632 | .s { color: #d14 } // Literal.String 633 | .na { color: #008080 } // Name.Attribute 634 | .nb { color: #0086B3 } // Name.Builtin 635 | .nc { color: #458; font-weight: bold } // Name.Class 636 | .no { color: #008080 } // Name.Constant 637 | .ni { color: #800080 } // Name.Entity 638 | .ne { color: #900; font-weight: bold } // Name.Exception 639 | .nf { color: #900; font-weight: bold } // Name.Function 640 | .nn { color: #555 } // Name.Namespace 641 | .nt { color: #000080 } // Name.Tag 642 | .nv { color: #008080 } // Name.Variable 643 | .ow { font-weight: bold } // Operator.Word 644 | .w { color: #bbb } // Text.Whitespace 645 | .mf { color: #099 } // Literal.Number.Float 646 | .mh { color: #099 } // Literal.Number.Hex 647 | .mi { color: #099 } // Literal.Number.Integer 648 | .mo { color: #099 } // Literal.Number.Oct 649 | .sb { color: #d14 } // Literal.String.Backtick 650 | .sc { color: #d14 } // Literal.String.Char 651 | .sd { color: #d14 } // Literal.String.Doc 652 | .s2 { color: #d14 } // Literal.String.Double 653 | .se { color: #d14 } // Literal.String.Escape 654 | .sh { color: #d14 } // Literal.String.Heredoc 655 | .si { color: #d14 } // Literal.String.Interpol 656 | .sx { color: #d14 } // Literal.String.Other 657 | .sr { color: #009926 } // Literal.String.Regex 658 | .s1 { color: #d14 } // Literal.String.Single 659 | .ss { color: #990073 } // Literal.String.Symbol 660 | .bp { color: #999 } // Name.Builtin.Pseudo 661 | .vc { color: #008080 } // Name.Variable.Class 662 | .vg { color: #008080 } // Name.Variable.Global 663 | .vi { color: #008080 } // Name.Variable.Instance 664 | .il { color: #099 } // Literal.Number.Integer.Long 665 | } 666 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------