User:Maximilianklein/common.js

importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: User:Equazcion/ScriptInstaller.js

var accessIsAlreadyOpenPrefixes = new Array(	'10.1098', '10.1155', '10.1186', '10.1371', '10.1534', '10.2196', '10.3352', '10.3389', '10.3390',	'10.3814', '10.3897', '10.4061', '10.5194', '10.5402', '10.6064', '10.7167', '10.7554', '10.7717'	); var refSpanSelector = "span.citation.journal"; var doiRegex = /dx\.doi\.org\/(.*)/g; var citationSpans = document.querySelectorAll(refSpanSelector); var doiLinks = []; var doiLinkElements = []; for (i = 0; i < citationSpans.length; i++) { var links = citationSpans[i].querySelectorAll("a"); for (j = 0; j < links.length; j++) { var link = decodeURIComponent(links[j].href); var match = doiRegex.exec(link); if (match !== null && accessIsAlreadyOpenPrefixes.indexOf(match[1].slice(0, 8)) == -1) { doiLinks.push(link); doiLinkElements.push(links[j]); }	} }

function oabutton(options) { var about = { version: 0.1, author: "Mark MacGillivray", created: "01102014", description: "A javascript client that operates against the Open Access Button 2.0 API" };   var defaults = { api: 'http://oabutton.cottagelabs.com/api', api_key: '' };   this.options = $.extend(defaults, options); this.response = {}; }

oabutton.prototype = { send: function(action,o) { this.options.api_key && !o.data.api_key ? o.data.api_key = this.options.api_key : false; var vars = { type: 'POST', url: this.options.api + '/' + action, contentType: 'application/json', dataType: 'JSON', processData: false, //crossDomain: true, cache: false, context: this, data: JSON.stringify(o.data) };       vars.success = function(res) { this.response = res; if ( !this.options.api_key && res.api_key ) { this.options.api_key = res.api_key; }           if ( !this.options.username && res.username ) { this.options.username = res.username; }           typeof o.success == 'function' ? o.success(res) : false; };       typeof o.error == 'function' ? vars.error = o.error : false; $.ajax(vars); },   register: function(o) { // o should be an object containing a data object with email, profession, username // and also a success function and error function if required this.send('register',o); },   status: function(o) { //this.send('status',o); // TODO: annoying behaviour of CORS on POST means this is being fugded as a JSONP GET for now this.options.api_key && !o.data.api_key ? o.data.api_key = this.options.api_key : false; var vars = { type: 'GET', url: this.options.api + '/status', cache: false, context: this, dataType: 'JSONP', data: o.data, success: function(res) { this.response = res; typeof o.success == 'function' ? o.success(res) : false; }       };        typeof o.error == 'function' ? vars.error = o.error : false; $.ajax(vars); },   blocked: function(o,rid) { var t = 'blocked'; if ( rid ) { t += '/' + rid; }       this.send(t,o); },   wishlist: function(o) { this.send('wishlist',o); }   // TODO: add the processor API route };

var oaicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADwCAYAAABFcSteAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QoQDCcTL7zgsAAAIABJREFUeNrtnXmcFNXV97/V1bOyDQOFLMMiFIsoioC7SYiJBCWKmqAoHX3RPKDRmMX4mqggLon6JoKoaKIRH7WIRsH1FUVRUYKPSxRMRBFKiYAbLSo7M9PV9fxRt8eaYWAW+vb0cr6fT39oYKZu1b33V+ecu5wLgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAI6cSQKtBLPGZjOW5j/94X6A30BDoDFlAMVAAlgK8+ccADNqvvnwPrgQ8sx01IDYtAcl4U8ZgdBb4LjAFGAoOBqBJEkfoeBSKNtElKKB5QG/rUKMEsBZYBz1iO+3VTwhREIBkXA1DXGeMx21CdvTtwCjAJOCJDt7MKeAR4EHgf8CzH9UQ0IpA2txTxmF0ODAKOBSYCx7Tx7X0I3A8sAlZbjrtJRCICaQthlABnA+OUOLpk2e3WAq8AzwDzLMddL0IRgWRKKJcBF6kAuyTLbzcBfAXMB66zHPcTaUERiC6LcRJwG7Bfjj5SDXAtcDOw3XJcv2EsJYhAWiqSYuVCTQNG58ljrQd+CzxlOe5maeXdiUgV7N1yqD8HAHeqgHd0Hj1ib2Ae8FA8Zh/X8LkFsSDNcanOA65XcUY+sxO4y3LcX0gQLwJpjkhKgPuA0wvs0d8DxliOu0GEIi5WPasRcqmGEwyNnl6AVXEAsDwes8engvZCdrlEINS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9RGBCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIKQJfwvJhvpmodaBb8AAAAASUVORK5CYII="; var blockedicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAANCAYAAACUwi84AAAABmJLR0QA/wD/AP+gvaeTAAABGElEQVQYlWWPIUsEYRiEn/nuPTyElSuL4C8wiGcQLt5fsNlMwvoLLIu4wl0wickmVoMmTYbjNmkR/4JgEQSTcLDf7mvZDeIDUwaGmRGAu2s6nR4B+5IE3OZ5fiXJewD9fv9c0pmkBfANHJdlmczn8ycVRTE0sy9Jh3me3wDMZrMDd78OIawHM9sEelVVPdAi6RHoufu2AQYwGAyqoig2AEIIP03TAKxal4oxLsxsBFDX9VvnB3cfAg6MOtPddyR5jHEtSNoD1HZ/AO/ddTObGLDbBqsQwrakJsb4Cay4+9gkLd0dwNx9q67rqhsOLM3d74ExoKZpSv5yF9I0vZD0wn+e0zS9DFmWVUmSTIBT4LXVSYxxkmVZ9QuaFG7xFQUbEgAAAABJRU5ErkJggg==";

// BEWARE the api key is hardcoded below. var OaButtonApi = new oabutton({api_key: '44ab0972-3a56-4d1d-ba10-c98c5342ac1d'}); var oabuttonhref = "javascript:(function{oabuid='44ab0972-3a56-4d1d-ba10-c98c5342ac1d';_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src='https://openaccessbutton.org/static/oabutton_includer.js?';document.getElementsByTagName('head')[0].appendChild(_my_script);})";

doiLinkElements.forEach(function(e,i,a) {	var data = {url: decodeURIComponent(e.href)};	var successCallback = function(response) {		var blockedCount = response.blocked;		var wishCount = response.wishlist;		var oaiconImg = document.createElement("img");		if(blockedCount > 0) {			oaiconImg.src = blockedicon;		} else {			oaiconImg.src = oaicon;		}		oaiconImg.height = 12; oaiconImg.width = 12;		var oaiconAnchor = document.createElement("a");		oaiconAnchor.href = oabuttonhref;		oaiconAnchor.appendChild(oaiconImg);		e.parentNode.appendChild(oaiconAnchor);		var oaSpanNode = document.createElement("span");		var oaSpanText = document.createTextNode(" Blocked reports: "+blockedCount+". Wishlisted "+wishCount+" times.");		oaSpanNode.appendChild(oaSpanText);		e.parentNode.appendChild(oaSpanNode);	};	OaButtonApi.status({data: data, success: successCallback, linkElement: e}); });

importScript("User:Another_Article/workflowstudyclient.js"); importScript('User:Enterprisey/easy-brfa.js'); //Linkback: User:Enterprisey/easy-brfa.js Added by Script installer importScript( 'User:SuperHamster/CiteUnseen.js' ); // Backlink: User:SuperHamster/CiteUnseen.js