Giter VIP home page Giter VIP logo

liberium's Introduction

liberium

A lightweight, open source, and free to use javascript and typescript library made for the unblocking community. Updates will keep coming, please suggest things to add or open pull requests with new features!

How to use

Include the library before any usage. You can import it using either Gitloaf or JSDelivr:

  • <script src="https://gitloaf.com/cdn/albibos/liberium/main/library.js"></script>
  • <script src="https://cdn.jsdelivr.net/gh/albibos/liberium@main/library.js"></script>

Example

Liberium.url('game')
Liberium.gopen('/load.html', 'iceagebaby')

Now, when the Liberium.gopen function is called, the user is redirected to https://example.com/load.html?game=iceagebaby.

Documentation

Functions

Liberium.cloak(url: string) - opens an about:blank tab using the specified url parameter

Liberium.blob(url: string) - opens a blob: url using the specified url parameter

Liberium.copen(id: string) - opens an about:blank tab with a 3kh0 assets game loaded via the id provided

Liberium.redirect(url: string) - redirects the user to the specified url

Liberium.tabcloak(title, faviconurl) - sets the title and favicon based on the specified params. Still works if only title or only faviconurl are set, just do (null, faviconurl) or (title, null)

Liberium.gopen(html: string, gameid: string) - redirects to the specified file and adds a url param based on the Liberium.url('') global. (only use if you know what you're doing)

Globals

Liberium.url(param: string) - the url param used for the Liberium.gopen function, should be set in a <script> in your head tag or anywhere before Liberium.gopen is used.

In the works

Liberium.g404(key: string) - overlays the google 404 page over your page which can be made invisible by clicking the specified key

liberium's People

Contributors

albibos avatar nostalgia-3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.