1. Log in to FTP, navigate to /content/custom/javascript/
2. Delete the file page.yml
3. Open the file custom.js in any text editor
4. Add the code as I mentioned earlier at the bottom of custom.js, so it should look like this:
Code
// X3 CUSTOM JAVASCRIPT [ADVANCED]
// This is where you add counters, stats and any other custom javascripts.
// NB! Make sure your scripts are wrapped inside the <script>...</script> tag.
// function x3_load(){ console.log('Runs after x3 is loaded, jquery available.'); };
// function x3_load_page(){ console.log('Runs after each X3 ajax page load'); };
// EXAMPLE 1
// <script src='//cdnjs.cloudflare.com/ajax/libs/sizzle/2.0.0/sizzle.min.js'></script>
// EXAMPLE 2
/*
<script>
function yourFunction(){
console.log('log: wow my function!');
}
yourFunction();
</script>
*/
<script>
function x3_load(){
$('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>