old_load_plugins = window.loadPlugins; window.loadPlugins=function() { loadExternalScripts.apply(this,arguments); old_load_plugins.apply(this,arguments); }; function loadExternalScripts() { var dirtyStatus = store.isDirty(); if (!store.isTiddler("ExternalTiddlers")) return; var originalPath = document.location.toString(); var localPath = getLocalPath(originalPath); var backSlash = true; var dirPathPos = localPath.lastIndexOf("\\"); if(dirPathPos == -1) { dirPathPos = localPath.lastIndexOf("/"); backSlash = false; } var scriptPath = localPath.substr(0,dirPathPos) + (backSlash ? "\\" : "/"); var scripts = store.getTiddlerText("ExternalTiddlers").readBracketedList(); for (var i=0; i