Last active
February 6, 2020 19:43
-
-
Save splintor/368fd331dfe7ce55ffd69e4bc94e53e3 to your computer and use it in GitHub Desktop.
Cibus - Set initial sorting
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==Cibus - Set initial sorting | |
// @name | |
// @namespace http://shmulik.flint.org/ | |
// @version 0.1 | |
// @description Make Cibus sort by minimum orders number | |
// @author Shmulik Flint | |
// @match https://www.mysodexo.co.il/* | |
// @updateUrl https://gist.github.com/splintor/368fd331dfe7ce55ffd69e4bc94e53e3/raw | |
// @grant none | |
// ==/UserScript== | |
'use strict'; | |
const s = document.querySelector('#ctl00_cphMain_ddlSort'); | |
if (s && s.selectedIndex !== 4) { | |
s.selectedIndex = 4; | |
s.onchange(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment