User:Jim Carter/common.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.
/*importScript('User:Jim Cartar/deletion sorting app.js');*/
importScript('User:Equazcion/OneClickArchiver.js'); // Backlink: [[User:Equazcion/OneClickArchiver.js]]
importScript( 'User:APerson/delsort.js' ); // Backlink: [[User:APerson/delsort.js]]
/*importScript('User:Jujutacular/closeFPC.js');*/
importScript('User:Jim Carter/AfD closer.js');
/*importScript("User:PleaseStand/segregate-refs.js");*/
/*importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]*/
/*importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');*/
importScript('User:Ohconfucius/script/MOSNUM dates.js'); //[[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Ohconfucius/script/Sources.js'); //[[User:Ohconfucius/script/Sources.js]]
importScript('User:Ohconfucius/script/dateabbreviations.js');
importScript('User:Ucucha/HarvErrors.js');
importScript('User:APerson/orcp-helper.js');
importScript( 'User:Technical 13/Scripts/OrphanStatus.js' );// [[User:Technical 13/Scripts/OrphanStatus]]

$(document).ready(function(){
	//alert($('title')[0].innerText);
	var createElement = document.createElement("div");
	createElement.style.display = "flex";
	createElement.style.alignItems = "end";
	var getPage = $('.mw-page-title-main').get(0).innerText;
	createElement.innerHTML = "<div style='font-size: 0.7rem;padding-bottom: 8px;' id='indic-research'><a target='_blank' href='https://astonishing-shortbread-7be40b.netlify.app/?prompt=" + getPage + "'>GET RESOURCES</a></div>";
	
	$('#right-navigation').get(0).appendChild(createElement);
	// $('#right-navigation').each(function(elem) {
	// 	alert(elem);
	// 	$(this)[0].appendChild(createElement);
	// });
	
    // $('a').each(function(){
    //     if(this.host !== window.location.host) {
    //         $(this).css({'background-color': '#FFFFE0', 'color': 'black', 'border': '1px solid black'});
    //     }
    // });
});