Created
October 13, 2016 10:47
-
-
Save tomoconnor/45bc8fb5204c132f94aaa90020e83a6e to your computer and use it in GitHub Desktop.
Set all bundle options on https://flavourfactory-eliquid.co.uk to cherry menthol, as it's my favourite.
This file contains hidden or 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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type (or see below for non wait option) | |
jQuery.noConflict(); | |
var x = $('select'); | |
var flavour_options = x.slice(1,-1); | |
flavour_options.each(function(i,v){v.value="cherry-menthol";}) |
$$('select').slice(1,-1).forEach(x=>x.value='cherry-ice-cherry-menthol')
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$$('select').slice(1,-1).forEach(x=>x.value='foo') //seems easier! Thanks @floopily