Coder Social home page Coder Social logo

wolever / chrome-okc-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjaffe/chrome-okc-plugin

0.0 2.0 0.0 26.29 MB

OkCupid Poly Plugin

License: MIT License

JavaScript 87.62% HTML 6.75% CSS 4.45% Python 0.24% Shell 0.18% PHP 0.54% Batchfile 0.18% PowerShell 0.04%

chrome-okc-plugin's Introduction

Stories in Ready chrome-okc-plugin

Note

This plugin is no longer in active development due to a lack of free time on my part. I do still intend to make changes and incorporate new questions (and possibly new features if pull requests are submitted for them), but not necessarily in a timely manner. I also intend to fix things if possible when they break due to OkC pushing new changes, so keep reporting issues if you find them.

If you are interested in forking and continuing development on the plugin, please do. I am open to directing users of this plugin to another plugin if the feature set is similar enough and it is under more active development than this one.

Intro

This plugin was created by benjaffe in order to make it easier for people, particularly with non-mainstream preferences, to find good matches on OKCupid.

Features

When you install the plugin and visit someone else's profile on OKCupid you will see "Plugin Menu" on the right side of the user navigation.

Plugin Menu/Categories

The categories feature allows you to chose different categories you care about such as "coffee" or "no coffee." You do this through "Change Categories" on the plugin menu. Drag from the "Available Categories" to "Currently-selected categories."

All of them comb through the questions set for these categories to calculate a user's score. It requires for you to answer the questions for that category and to mark them as Very Important or Mandatory. To answer more questions in your chosen category you can go to "Plugin Menu" and select "Improve Plugin Accuracy."

Once you've chosen categories, when you visit another user, the meter showing their performance in each chosen category will display next to their picture. You can mouseover to see how they answered each question. The meters will only display if the users have answered questions in that category though.

Labels

The label feature allows you to mark profiles for future use such as "poly" or "not for me." This will make all links to their profile more transparent throughout the site.

Development

Building

You can just run this by cloning it, you need to install all the dependencies to build it correctly. To do that first run

npm install

That will install Grunt, a task runner that is responsible for the tasks needed in order to register the extension for use in Chrome.

Run Grunt by running the Grunt command

grunt

Read Grunt.js to learn more about the other tasks it performs.

Finally, you'll need to run Bower, which installs some plugin dependencies like Jquery and Bootstrap

bower install

Depending on your local environment you may need to run as an administrator.

To test out your local copy in Chrome go to chrome://chrome/extensions/, click the "Developer Mode" checkbox. After that you should have the option to "Load Unpacked Extensions." Select your local copy.

Data

Data is stored locally in localStorage. If you'd like to examine it, the extension Storage Area Explorer is helpful.

Adding Custom Categories

  • Create a new .js file in plugin/questions named after your category. For example categoryname.js.
  • Add your category to category-list.mdown
  • Add it to manifest.json

The other option is adding a new subcategory into an existing category file.

Editing is pretty simple, you can use the other categories as models, but basically each category is an array in the format:

_OKCP.fileQuestions.categoryname =
	{
		"sub-category": [
			{
				"qid":"409", //the question's ID.
				"answerText": ["Answer 1", "Answer 2"], //possible answers
				"score": [-1, 1], //how they contribute to the category score
				"weight": [1, 1] //how much you want to weight the answers on the category score
			}
		]
   }

How do you find the question ID? If you find a question on the site, you can get the question ID (in Google Chrome) by right-clicking on the question title, Inspect Element, then look for something like <div id="qtext_41953" class="qtext">. In this example, the qid would be 41953. Bitdeli Badge

Previous feature text (no longer supported):

  • Improve the plugin's accuracy by answering questions that the plugin finds.
  • Get a direct link to your message thread with a user from their profile page
  • Thumbnails images enlarge when you mouse over them.
  • Re-added the pagination that OkCupid recently removed on Questions and Messages pages

chrome-okc-plugin's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.