├── .gitattributes ├── icon.png ├── promo.png ├── .editorconfig ├── content.css ├── background.js ├── readme.md ├── manifest.json ├── license └── query-string.js /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sindresorhus/quora-unblocker/HEAD/icon.png -------------------------------------------------------------------------------- /promo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sindresorhus/quora-unblocker/HEAD/promo.png -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /content.css: -------------------------------------------------------------------------------- 1 | .narrow_signup_form, 2 | .signup_bubble, 3 | .signup_column, 4 | .logged_out .follow_button, 5 | .logged_out .ActionBar, 6 | .logged_out .AskToAnswerSectionToggle, 7 | .logged_out .answer_voters, 8 | .logged_out .Footer, 9 | .inline_answer_logged_out, 10 | .LoggedOutAskQuestionButton, 11 | .BelowQuestionAddPrompt, 12 | .LoggedOutFooter, 13 | .LoggedOutSiteHeader .header_logo { 14 | display: none !important; 15 | } 16 | 17 | .LoggedOutSiteHeader .ask_bar { 18 | padding-left: 0 !important; 19 | } 20 | -------------------------------------------------------------------------------- /background.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | chrome.webRequest.onBeforeRequest.addListener(function (details) { 4 | if (details.method !== 'GET') { 5 | return; 6 | } 7 | 8 | var parts = details.url.split('?'); 9 | var query = queryString.parse(parts[1]); 10 | 11 | query.share = 1; 12 | 13 | return { 14 | redirectUrl: parts[0] + '?' + queryString.stringify(query) 15 | }; 16 | }, { 17 | urls: [ 18 | '*://quora.com/*', 19 | '*://www.quora.com/*' 20 | ], 21 | types: [ 22 | 'main_frame' 23 | ] 24 | }, [ 25 | 'blocking' 26 | ]); 27 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Quora Unblocker 2 | 3 | --- 4 | 5 | > [!NOTE] 6 | > This was taken down by Google because Quora sent a trademark complaint. 7 | 8 | --- 9 | 10 | > Chrome extension - Removes the login requirement and any nagging about it 11 | 12 | Quora has a quite obscure way to view content [without logging in](http://blog.quora.com/Making-Sharing-Better) by appending `?share=1` to the url. This extensions appends that to every Quora url you visit in addition to removing some annoying login nags. 13 | 14 | ## Install 15 | 16 | Install it from the [Chrome Web Store](https://chrome.google.com/webstore/detail/quora-unblocker/pcjnlebeogfamlbeloiccdidgmaeojhe) or [manually](http://superuser.com/a/247654/6877). 17 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Quora Unblocker", 3 | "version": "1.1.2", 4 | "description": "Removes the login requirement and any nagging about it", 5 | "homepage_url": "https://github.com/sindresorhus/quora-unblocker", 6 | "manifest_version": 2, 7 | "minimum_chrome_version": "65", 8 | "icons": { 9 | "128": "icon.png" 10 | }, 11 | "permissions": [ 12 | "webRequest", 13 | "webRequestBlocking", 14 | "*://quora.com/*", 15 | "*://www.quora.com/*" 16 | ], 17 | "background": { 18 | "scripts": [ 19 | "query-string.js", 20 | "background.js" 21 | ] 22 | }, 23 | "content_scripts": [{ 24 | "run_at": "document_end", 25 | "matches": [ 26 | "*://quora.com/*", 27 | "*://www.quora.com/*" 28 | ], 29 | "css": [ 30 | "content.css" 31 | ] 32 | }] 33 | } 34 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (https://sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /query-string.js: -------------------------------------------------------------------------------- 1 | /*! 2 | query-string 3 | Parse and stringify URL query strings 4 | https://github.com/sindresorhus/query-string 5 | by Sindre Sorhus 6 | MIT License 7 | */ 8 | (function () { 9 | 'use strict'; 10 | var queryString = {}; 11 | 12 | queryString.parse = function (str) { 13 | if (typeof str !== 'string') { 14 | return {}; 15 | } 16 | 17 | str = str.trim().replace(/^(\?|#)/, ''); 18 | 19 | if (!str) { 20 | return {}; 21 | } 22 | 23 | return str.trim().split('&').reduce(function (ret, param) { 24 | var parts = param.replace(/\+/g, ' ').split('='); 25 | var key = parts[0]; 26 | var val = parts[1]; 27 | 28 | key = decodeURIComponent(key); 29 | // missing `=` should be `null`: 30 | // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters 31 | val = val === undefined ? null : decodeURIComponent(val); 32 | 33 | if (!ret.hasOwnProperty(key)) { 34 | ret[key] = val; 35 | } else if (Array.isArray(ret[key])) { 36 | ret[key].push(val); 37 | } else { 38 | ret[key] = [ret[key], val]; 39 | } 40 | 41 | return ret; 42 | }, {}); 43 | }; 44 | 45 | queryString.stringify = function (obj) { 46 | return obj ? Object.keys(obj).map(function (key) { 47 | var val = obj[key]; 48 | 49 | if (Array.isArray(val)) { 50 | return val.map(function (val2) { 51 | return encodeURIComponent(key) + '=' + encodeURIComponent(val2); 52 | }).join('&'); 53 | } 54 | 55 | return encodeURIComponent(key) + '=' + encodeURIComponent(val); 56 | }).join('&') : ''; 57 | }; 58 | 59 | if (typeof define === 'function' && define.amd) { 60 | define(function() { return queryString; }); 61 | } else if (typeof module !== 'undefined' && module.exports) { 62 | module.exports = queryString; 63 | } else { 64 | window.queryString = queryString; 65 | } 66 | })(); 67 | --------------------------------------------------------------------------------