Jump to content

User:V111P/js/webRefSiteDataExample.js

From Wikipedia, the free encyclopedia
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.
window.webRefSiteData = {

"cnn.com": {
	"author": "div.cnnByline^^By^^, CNN",
	"notAnAuthor": "CNN"
},
"usatoday.com": {
	"title": "title",
	"date": "span.asset-metabar-time.asset-metabar-item.nobyline",
	"author": "span.asset-metabar-author.asset-metabar-item^^^^,"
},
"bbc.com": {
	"date": "span.date",
	"author": "span.byline-name^^By",
	"lang": "en"
},
"theguardian.com": {
	"siteName": "[[The Guardian]]",
	"date": "li.publication time"
}

};
 
if (window.webRef && webRef.getRef)
	webRef.getRef();
else (function () {
	var scrEl = document.createElement('script');
	scrEl.src = '//en.wikipedia.org/w/index.php?title='
			+ 'User:V111P/js/webRef.js&action=raw&ctype=text/javascript&smaxage=43200&maxage=86400';
	document.body.appendChild(scrEl);
})();