* readme update and autoloader update
This commit is contained in:
Lucas 2019-10-18 10:18:11 +01:00 committed by GitHub
parent 7efe3c7e83
commit 3dc38d27b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 40 deletions

View File

@ -1,38 +0,0 @@
// ==UserScript==
// @name Herosaver Autoloader
// @author TeaWithLucas
// @namespace https://github.com/TeaWithLucas/Herosaver/
// @description Autoloader for the Herosaver Script
// @version 1
// @include *example.com/*
// @installURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/Autoloader.js
// @downloadURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/Autoloader.js
// @updateURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/Autoloader.js
// @run-at document-end
// ==/UserScript==
/*
* This file is a Greasemonkey user script. To install it, you need
* the Firefox plugin "Greasemonkey" (URL: http://greasemonkey.mozdev.org/)
* After you installed the extension, restart Firefox and revisit
* this script. Now you will see a new menu item "Install User Script"
* in your tools menu.
*
* To uninstall this script, go to your "Tools" menu and select
* "Manage User Scripts", then select this script from the list
* and click uninstall :-)
*
* Creative Commons Attribution License (--> or Public Domain)
* http://creativecommons.org/licenses/by/2.5/
*/
//object constructor
function runinsert(){
// run the Herosaver Script
var xhr=new XMLHttpRequest;xhr.open("get","https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/dist/saver.min.js",true);xhr.onreadystatechange=function(){if(xhr.readyState==4){var script=document.createElement("script");script.type="text/javascript";script.text=xhr.responseText;document.body.appendChild(script)}};xhr.send(null);
};
//instantiate and run
runinsert();

View File

@ -15,10 +15,10 @@ var xhr=new XMLHttpRequest;xhr.open("get","https://raw.githubusercontent.com/Tea
```
### Loading via Greecemonkey or other script loader
This method should automatically load the script on page load. Current it doesn't work if the page is reloaded (Open for suggestions?)
This method should automatically load the script on page load.
1. Install Greasemonkey Browser Addon (or alternative)
2. [Click here to install](https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver-autoloader.user.js "Click to install") - [herosaver-autoloader.user.js](herosaver-autoloader.user.js)
2. [Click here to install](https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver-autoloader.user.js "Click to install"), Link to repository: [herosaver-autoloader.user.js](herosaver-autoloader.user.js)
3. The install window should pop up, check "Open editor after install completes" if you want to add domains, then click install.
4. If it doesn't pop up an install window, either Greasemonkey isn't installed or another problem has occured, you can try adding the script manually.

View File

@ -5,6 +5,7 @@
// @description Autoloader for the Herosaver Script
// @version 1
// @include *example.com/*
// @include *forge.com/*
// @installURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver-autoloader.user.js
// @downloadURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver-autoloader.user.js
// @updateURL https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver-autoloader.user.js