Wikipedia Recommendation System
The repo is still in alpha stage. Only for Chinese Wikipedia currently.
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.
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.
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:
- Normal setting for Wikipedia users by importing script in common.js
- Tampermonkey userscript with jQuery enabled
- Tampermonkey userscript with jQuery disabled (block jQuery by rule
*.wikipedia.org/*jquery*$script
, see WikipediaWithoutJquery )