Skip to content

Instantly share code, notes, and snippets.

@thachnuida
thachnuida / importChildModules.py
Last active April 11, 2018 09:02
Import child module in child folder for js
import sublime
import sublime_plugin
import os
import re
class ImportChildModulesCommand(sublime_plugin.TextCommand):
def replace_module_name(self, m):
return m.group(2).upper()
(function () {
// Check if the script is already loaded
if (document.getElementById("mrh-proxy-script")) {
console.log("Script already loaded, skipping...");
return;
}
// Add a float button to the page to show that the script is running
var floatButton = document.createElement("div");
floatButton.style.position = "fixed";