Jump to content

User:Technical 13/Scripts/CVD.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 20:05, 17 June 2014 (Notes to get started...). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var scanCV = mw.util.addPortletLink(
	"p-tb",
	"#",
	"CVDetector",
	"p-cv-detector",
	"Scan for copyright violations with Earwig's CopyVios & Derrick Coetzee's Duplication Detector tools"
);
$( scanCV ).click( function ( e ) {
	e.preventDefault();
	/* do stuff */
});

/* get links from page
$('a.external').each(function(){
	console.log($(this).attr('href'));
});
*/

/* CopyVios
'//toolserver.org/~earwig/copyvios?lang=' + wgContentLanguage + '&project=' + wgSiteName.toLowerCase() + '&title=' + encodeURIComponent(wgPageName) + '&url=' + encodeURIComponent(foundURL)
*/

/* DupDet
'//tools.wmflabs.org/dupdet/compare.php?url1=' + encodeURIComponent('https:' + wgServer + wgScriptPath + '/index.php?title=' + wgPageName) + '&url2=' + encodeURIComponent(foundURL)
*/