Last active
July 4, 2018 15:02
-
-
Save MisterDuval/515e463fda334e9cf4e01a121f9cc6e2 to your computer and use it in GitHub Desktop.
Script Tampermonkey for Sellsy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sellsy | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author MisterDuval | |
// @description Sellsy visual improvements | |
// @updateURL https://gist.githubusercontent.com/MisterDuval/515e463fda334e9cf4e01a121f9cc6e2/raw/842a0f2f537781c72f13ca6af67490b88bf7d464/sellsy-tampermonkey.js | |
// @match https://www.sellsy.fr/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Add useful links to first level | |
$("#menuli_contacts > a").attr("href", "https://www.sellsy.fr/?_f=thirds&type=client"); | |
$("#menuli_invoicing > a").attr("href", "https://www.sellsy.fr/?_f=estimates"); | |
$("#menuli_catalogue > a").attr("href", "https://www.sellsy.fr/?_f=catalogue&itmtype=item"); | |
// Move most useful filters to top and highlight them | |
$("#docestimatesFilterForm label[for='docestimatesListing_filter_thirds']") | |
.css("background", "aliceblue") | |
.parent().insertAfter("#docestimatesFilterForm > div:nth-child(3)"); | |
$("#docestimatesFilterForm label[for='docestimatesListing_filter_ident']") | |
.css("background", "aliceblue") | |
.parent().insertAfter("#docestimatesFilterForm > div:nth-child(4)"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment