I saw a hot meta post the other day about plagiarism on Documents, so I decided to write a bot to help automate the process of handling plagiarism quickly and easily.
It's a user script which autopilots the process of scanning an entire tag, or every tag, one document at a time, 30 words at a time to quickly pinpoint and handle plagiarism on the new Documents site.
It autopilots your browser, opening Documents pages, opening Google, performing Google searches in verbatim
mode, using fuzzy string searches on the top results to determine plagiarism, communicating back to the Documents tab with that info, and then consulting you before taking an action on any pinpointed plagiarized content.
I can compile a list of sources which allow themselves to be cited for documentation, so that if the bot finds un-cited plagiarism of one of those sources, it can put it in a quote format and cite the original source. Or the bot can flag it. Or it can remove it and cite the original source in the edit summary.
Regardless, the user makes the call, so they can always deviate from the suggested action. I just need to know which action the bot should suggest under which circumstances.
xmlhttpRequest
completely ignoring cross origin policies, which lets us load Google into an iFrame on SO, but then all the scripts and sources are pointing to SO as the domain. I'm trying to figure out a way to trick the iFrame contents to think the domain isgoogle.com
.