Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.92 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.92 KB

RecomWP

Wikipedia Recommendation System

The repo is still in alpha stage. Only for Chinese Wikipedia currently.

Usage

For unregistered Wikipedia users / Wikipedia readers

Download addon Tampermonkey Firefox / Chrome

Just open RecomWP.user.js file and install it with your favorite user script manager. The script is also available on Greasy Fork.

Open Wikipedia home page and check what changed

A new link appeared and that's the link to RecomWP. You should first open some articles that you like and then you will get the Recommeded articles base on the articles you visited.

default

For Wikipedia users

Of course you can use the method above, there's another option. You can simply add one line to your common.js

importScript('User:Alexander Misel/test2.js');

And you will see the same things as above.

Contribution

The RecomWP is self-contained and so it doesn't rely on other libraries, so you'd better not using other libraries if it isn't so necessary. Your browser should support IndexedDB. Pull requests and issues are welcomed. I used a Binary Heap to sort the entries.

Your code should work in the following three situations before you submit a PR:

  1. Normal setting for Wikipedia users by importing script in common.js
  2. Tampermonkey userscript with jQuery enabled
  3. Tampermonkey userscript with jQuery disabled (block jQuery by rule *.wikipedia.org/*jquery*$script, see WikipediaWithoutJquery )