Collection of small JavaScript functions and scripts that can be used in the browser to interact with Lair
- Log into Lair.
- If the script comments have "Requires client-side updates: true" you will need to turn on client updates, if not, you can skip this step. On the initial page under "Settings" ensure that you have enabled "client-side updates".
- Load your desired project.
- From within your browser, open your JavaScript console. How to do this is specific to your browser and/or plugins used.
- Copy the script and/or function definition in its entirety; paste it into your JavaScript console.
- Run the newly defined function, adhering to the usage defined in the comments of each script.
You can now import all_scripts.js or all_scripts_min.js in the developer console for easier access to all the browser scripts at once. paste the following into your developer console and you are ready to go:
$.getScript('https://cdn.rawgit.com/x-a-n-d-e-r-k/browser-scripts/master/all_scripts_min.js')
Then you can call any function included in this repo.
Additionally, you can add the above as a bookmarklet by creating a new bookmark in your browser (I have it on my bookmark bar) with the location as:
javascript:(function() { $.getScript('https://cdn.rawgit.com/x-a-n-d-e-r-k/browser-scripts/master/all_scripts_min.js'); })();
This will load all the scripts behind the scenes without having to remember the code snippet to do so.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request