LibraryManager

Libraries from The OutProud Group

Import libraries custom made and curated by the folks at The OutProud Group!

Nothing found!

LibraryManager.import("onemb.js");
1mb Website
Asynchronous JavaScript client for the 1mb.site API, that you can use to programatically get and update the source of 1mb sites.
/* Import OneMB.js */
LibraryManager.import("onemb.js");

/*
 * Read the HTML source of a website
 * Format: onemb.read(site_name, callback_function);
 */
onemb.read("libimports", function(response) {
	/*
	 * Log the site's HTML source to the console
	 * If there was an error, this will equal false
	 */
	console.log(response);
});

/*
 * Update the HTML source of a website
 * Format: onemb.read(site_name, site_key,
 *             new_code, callback_function);
 */
onemb.update(
	"libimports",
	"SITE_KEY",
	"<h1>Hello World</h1>",
	function(response) {
		/*
		 * Log the response to the console
		 * If successful, this will equal true.
		 * Otherwise, this value will display the error returned by the 1mb.site API.
		 */
		console.log(response);
	}
);
This library is exclusively available only from LibraryManager

Get Started with LibraryManager

Add the script tag below just before the
</head>
tag in your HTML page, and you can start importing as soon as it loads!
<head>
    ...
    
    <script type="text/javascript" src="https://libimports.host/librarymanager.js"></script>
</head>
<body>
    ...
</body>