PageSourceSearch

https://www.lpcorp.com/mp_linkcode.js

js lpcorp.com collected 2026-09-25 19:02:08 UTC 2,088 bytes, 52 lines download raw bytes

1var MP = {
2	Version: '3.4.0.0',
3	SrcLang: 'en',
4    Protocols: {'http:':'http://', 'https:':'https://'},
5    UrlLang: 'mp_js_current_lang',
6	SrcUrl: decodeURIComponent('mp_js_orgin_url'),
7	oSite: decodeURIComponent('mp_js_origin_baseUrl'),
8	tSite: decodeURIComponent('mp_js_translated_baseUrl'),
9	init: function() {
10		if (MP.oSite.indexOf('p_js_') == 1) {
11			MP.SrcUrl = window.top.document.location.href;
12			MP.oSite = MP.tSite = window.top.document.location.host;
13			MP.UrlLang = MP.SrcLang;
14		}
15	},
16	switchLanguage: function(url, pref, sync) {
17		var sync = sync;
18		var oSite=MP.oSite.replace('http://','').replace('https://','').replace(/\/?$/, '');
19		var tSite=MP.tSite.replace('http://','').replace('https://','').replace(/\/?$/, '');
20		url=url.replace('http://','').replace('https://','').replace(/\/?$/, '');
21		if(sync && (typeof MpStorage !== 'undefined')&&(typeof MpStorage.updatePref !== 'undefined')){
22			MpStorage.updatePref(url,pref);
23		}
24		lang = pref.substring(0,2);
25		setTimeout(function() {
26			var script = document.createElement('SCRIPT');
27            var protocol = MP.Protocols[location.protocol];
28			var pageLoc = encodeURIComponent(window.top.document.location.href);
29			var tPageLoc = encodeURIComponent(MP.SrcUrl);
30			if (url == oSite) {
31				tSite = tSite.split(/[/?#]/)[0];
32				script.src = encodeURI(protocol + tSite + '/' + MP.SrcLang + MP.UrlLang) + '/?1023749634;' + pageLoc;
33			} else {
34			 if(MP.SrcLang==lang && tSite == oSite){return false;}
35				url = url.split(/[/?#]/)[0];
36				script.src = encodeURI(protocol + url + '/' + MP.SrcLang + lang) + '/?1023749632;' + tPageLoc;
37			}
38			var target = document.getElementsByTagName('script')[0];
39			target.parentNode.insertBefore(script, target);
40		}, 500);
41		return false;
42	},
43	switchToLang: function(url) {
44		if(window.top.location.href == url){
45			if((typeof MpStorage !== 'undefined')&&(typeof MpStorage.updatePref !== 'undefined'))
46			MpStorage.updatePref(MP.oSite,MP.SrcLang);
47		}else{
48			url = encodeURI(url);
49			window.top.location.href = url;
50		}
51	}
52};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.