PageSourceSearch

https://www.merx.com/scripts/ckeditor/ckeditor-alters.js

js merx.com collected 2026-10-02 03:24:03 UTC 927 bytes, 33 lines download raw bytes

1window.CKEDITOR_GETURL = (function (resource) {
2	var tempResource = "";
3	var PATH = "/scripts/ckeditor/";
4
5	if (resource.indexOf(PATH) != -1) {
6		resource = resource.substring(resource.indexOf(PATH) + PATH.length);
7	}
8	// Only change the path if it is not already a full path
9	if ( resource.indexOf( ':/' ) == -1 && (contextPath == "" || resource.indexOf(contextPath) == -1 )) {
10	
11		// Only add this if the path doesn't start with a slash
12		if (resource.indexOf( '/' ) !== 0) {
13			resource = PATH + resource;
14		}
15		
16		// Remove timestamp
17		if (resource.indexOf("?") != -1) {
18			resource = resource.substring(0, resource.indexOf("?"));
19		}
20	
21		// If nothing was return by jawr, add the context path instead
22		if (!resource) {
23			resource = contextPath + tempResource;
24		}
25		
26		// If it is an image, add the context path
27		if (tempResource == "" && resource) {
28			resource = contextPath + resource;
29		}
30	}
31	
32	return resource;
33});

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.