// ==UserScript== // @name InstaSynchP Settings // @namespace InstaSynchP // @description Provides the ability to store settings for the plugins // @version 1.0.7 // @author Zod- // @source https://github.com/Zod-/InstaSynchP-Settings // @license MIT // @include http://*.instasynch.com/* // @include http://instasynch.com/* // @include http://*.instasync.com/* // @include http://instasync.com/* // @grant none // @run-at document-start // @require https://greasyfork.org/scripts/5647-instasynchp-library/code/InstaSynchP%20Library.js // @downloadURL none // ==/UserScript== function Settings(version) { "use strict"; this.version = version; this.name = 'InstaSynchP Settings'; this.fields = []; } Settings.prototype.executeOnceCore = function () { "use strict"; var th = this; th.fields = th.fields.length === 0 ? undefined : th.fields; cssLoader.add({ 'name': 'settings', 'url': 'https://cdn.rawgit.com/Zod-/InstaSynchP-Settings/7dfd1923ab7fff4ef9b201864249d2e1d2ae44ce/settings.css', 'autoload': true }); //add the button $('#loginfrm > :first-child').before( $('
', { 'id': 'plugin-settings' }).append( $('