Code Monkey home page Code Monkey logo

citationneeded.js's Introduction

citationNeeded.js (來源請求.js)

Wikipedian Protester

中文說明

This script is a tribute to Chinese Wikipedia for its systemic bias. Such bias is unfortunately contributed by it's editors even without their own knowledge — such as include objective statements on things when they describe, writing "facts" they were told as kids into the encyclopedia without fact checking.

The fact that the majority of Chinese users are lived in a single mono-culture totalitarian (not an encyclopedic fact) state, I believe (not an encyclopedic fact), will eventually contribute the failure of zh.Wikipedia. At least the encyclopedia will never as good as en.Wikipedia on it's society and history entries.

Being told I should not criticize the project without contributing to it, as a web developer, I decided to contribute my effort to this little script, instead of waging Edit Warring.

What it does

When installed to your Wikipedia account, each time when you select text of an article, a [citation needed] button will show up near your cursor, when clicked, it will mark the selected text as citation needed upon confirmation.

What it doesn't do

Making Wikipedia an instant success. Making you the Wikipedic hero.

Install

  1. Logged in,

  2. Go to Special:MyPage/common.js page with your own, e.g. this page in English Wikipedia.

  3. Edit the page, insert the following script

    importScriptURI(
    	'https://raw.github.com/timdream/citationNeeded.js/master/citationNeeded.min.js?'
    	+ Math.floor((new Date()).getTime()/1000/60/60/24).toString(16)
    );
    
  4. Save, reload the page

  5. Go to the article with content that needs citation

  6. Select the text with your cursor, a [citation needed] button will show up

  7. Click the button and confirm. Wait for the script talking to Wikipedia API

  8. The page will automatic reload upon completion

Known Issue

  • Script cannot find the corresponding wikitext if your selection is more than plain text (e.g. includes link)
  • Script cannot handle multiple non-continuous selection

Author

timdream [email protected]

License

CC by-sa 3.0, the same license for Wikipedia.

citationneeded.js's People

Contributors

timdream avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.