- 5.1. Specificity
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
<script> | |
console.log('<= cross-domain =>') | |
const VALUE_KEY = 'myValue' | |
window.onload = () => { | |
console.log('cross-domain load =>') | |
try { | |
if (typeof window !== 'undefined' && typeof localStorage !== 'undefined') { |
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
// GoTo ProductPage | |
javascript:window.open(`https://nomad.frontend.getshogun.com/products/${document.querySelector('p[class*=Text__Heading').innerText}`,'_blank'); | |
// Switch between 'nomadgoods.com' and 'nomad.frontend.getshogun.com' | |
javascript:(function(){if(window.location.href.includes('nomadgoods.com')){const url=window.location.href.replace('nomadgoods','nomad.frontend.getshogun');window.location.replace(url);}if(window.location.href.includes('nomad.frontend.getshogun.com')){const url=window.location.href.replace('nomad.frontend.getshogun','nomadgoods');window.location.replace(url);}})(); | |
// HubApp FullScreen | |
javascript:(function(){if(!document.querySelector('#__next > div > main > div:last-child > div').style.position){document.querySelector('#__next > div > main > div:last-child > div').style.position='absolute';document.querySelector('div[class*="LivePreview__IframeContainer"]').style.borderWidth=0;}else{ document.querySelector('#__next > div > main > div:last-child > div').style.position='';documen |
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
<template lang="html"> | |
<div class="sample-class"> | |
<!-- ... --> | |
</div> | |
</template> | |
<script type="text/javascript"> | |
export default { | |
// Don't forget | |
name: 'SampleComponent', |