Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ]: www.sh.se #6962

Closed
Freso opened this issue Sep 2, 2023 · 0 comments · Fixed by #10544
Closed

[REQ]: www.sh.se #6962

Freso opened this issue Sep 2, 2023 · 0 comments · Fixed by #10544

Comments

@Freso
Copy link

Freso commented Sep 2, 2023

Website URL

www.sh.se

What browser are u using?

Firefox 117.0

Version

1.1.1

Notes

image

This seems to be the relevant HTML:

<div class="sv-layout sv-skip-spacer sv-template-portlet
" id="svid30_7357e3f3168752d5a10f54a"><div id="Cookies"><!-- Cookies --></div><div class="sv-custom-module sv-marketplace-sitevision-cookie-consent sv-skip-spacer sv-template-portlet
" id="svid12_1d807adf184b3f3dda7279a1"><div id="Cookiebanner"><!-- Cookie-banner --></div><div data-cid="12.1d807adf184b3f3dda7279a1"><div class="env-modal-dialog oHJ5jYD6hE4G0dWjJEyW sv-cookie-consent-modal env-modal-dialog--show env-modal-dialog--inner-scroll" role="dialog" aria-hidden="false" aria-modal="true" aria-labelledby="sv_dS5AKY16hhhxC8AXunN3n" data-nosnippet="true"><div class="env-modal-dialog__dialog" data-testid="modal-dialog"><section class="env-modal-dialog__content" aria-live="polite"><header class="env-modal-dialog__header"><h1 class="env-modal-dialog__header__title env-text-h4" id="sv_dS5AKY16hhhxC8AXunN3n">Vi använder kakor (cookies)</h1></header><div class="env-modal-dialog__body"><div class="env-d--flex  env-flex--column"><p class="env-text">Södertörns högskolas webbplatser använder cookies för att fungera på ett bra sätt. Vi använder också kakor för webbanalys så vi kan förbättra vår webbplats. 
Genom att välja &quot;Godkänn alla kakor&quot; samtycker du till att cookies används. </p><p class="env-m-top--x-small env-text"><a class="env-link" href="[/om-oss/det-har-ar-sodertorns-hogskola/om-webbplatsen](view-source:https://www.sh.se/om-oss/det-har-ar-sodertorns-hogskola/om-webbplatsen)" rel="" target="_self">Högskolans cookiepolicy</a></p></div></div><footer class="env-modal-dialog__footer faKMEo5bnDu4BUB1ZuL5"><form method="post" class="env-d--flex" action="[/program--kurser/kurser/grund/tillampad-statistik-analys-och-tolkning?sv.target=12.1d807adf184b3f3dda7279a1&amp;sv.12.1d807adf184b3f3dda7279a1.route=%2Fconsent-settings](view-source:https://www.sh.se/program--kurser/kurser/grund/tillampad-statistik-analys-och-tolkning?sv.target=12.1d807adf184b3f3dda7279a1&sv.12.1d807adf184b3f3dda7279a1.route=%2Fconsent-settings)"><input type="hidden" name="analytics" value="analytics"/><input type="hidden" name="marketing" value="marketing"/><input type="hidden" name="custom" value="custom"/><input type="hidden" name="functional" value="functional"/><input type="hidden" name="sv.csrfToken"/><button type="submit" class="env-button env-button--primary">Godkänn alla kakor</button></form><a class="env-button env-button--ghost env-button--primary" href="[/program--kurser/kurser/grund/tillampad-statistik-analys-och-tolkning?sv.target=12.1d807adf184b3f3dda7279a1&amp;sv.12.1d807adf184b3f3dda7279a1.route=%2Fsettings](view-source:https://www.sh.se/program--kurser/kurser/grund/tillampad-statistik-analys-och-tolkning?sv.target=12.1d807adf184b3f3dda7279a1&sv.12.1d807adf184b3f3dda7279a1.route=%2Fsettings)" rel="nofollow">Inställningar</a></footer></section></div></div><div class="env-modal-dialog__backdrop env-modal-dialog__backdrop--in" data-testid="modal-backdrop"></div></div><script nonce="aa4499e0-49a8-11ee-8e35-bf1ae2cc00b2" >AppRegistry.registerBootstrapData('12.1d807adf184b3f3dda7279a1','12.1d807adf184b3f3dda7279a1','AGNOSTIC_RENDERER');</script><script nonce="aa4499e0-49a8-11ee-8e35-bf1ae2cc00b2">AppRegistry.registerInitialState('12.1d807adf184b3f3dda7279a1',{"settings":{"displayType":"modal","message":"Södertörns högskolas webbplatser använder cookies för att fungera på ett bra sätt. Vi använder också kakor för webbanalys så vi kan förbättra vår webbplats. \nGenom att välja \"Godkänn alla kakor\" samtycker du till att cookies används. ","settingsSubTitle":null,"cookiePolicyUri":"/om-oss/det-har-ar-sodertorns-hogskola/om-webbplatsen","title":"Vi använder kakor (cookies)","cookiePolicyLinkText":"Högskolans cookiepolicy","usePolicyPage":true,"manageButtonText":"Hantera cookies","buttonType":"acceptAll","openLinkInNewTab":false},"categories":[{"id":"necessary","title":"Nödvändiga cookies","description":"Gör att våra tjänster är säkra och fungerar som de ska. Därför går de inte att inaktivera.","hasConsent":true},{"id":"functional","title":"Funktionella cookies","description":"Hjälper oss att tillhandahålla förbättrad funktionalitet och anpassning.","hasConsent":false},{"id":"analytics","title":"Analytiska cookies","description":"Ger oss information om hur vår webbplats används som gör att vi kan underhålla, driva och förbättra användarupplevelsen.","hasConsent":false}],"displayOptions":{"consentOpen":true,"settingsOpen":false},"baseHeadingLevel":1,"customButtonTexts":{"acceptAllCookies":null,"acceptNecessaryCookies":null,"settings":null,"saveAndAccept":null},"useCustomButtonTexts":false});</script>
<script nonce="aa4499e0-49a8-11ee-8e35-bf1ae2cc00b2">AppRegistry.registerApp({applicationId:'marketplace.sitevision.cookie-consent|1.7.2',htmlElementId:'svid12_1d807adf184b3f3dda7279a1',route:'/',portletId:'12.1d807adf184b3f3dda7279a1',locale:'sv',defaultLocale:'en',webAppId:'marketplace.sitevision.cookie-consent',webAppVersion:'1.7.2',webAppAopId:'360.4184925c18a2107812c32b8a',webAppImportTime:'1693498951370',requiredLibs:{"react":"17.0.2"},childComponentStateExtractionStrategy:'BY_ID'});</script></div>
</div>

Simply deleting the div with id="svid30_7357e3f3168752d5a10f54a" makes the site available, but the ID doesn’t seem to be permanent, or at least not across the site—looking at another page gives me a different id. This CSS seems to work:

div:has(> div#Cookies) { display: none; }

But this requires support for the :has() pseudo‐class which not all browsers have. Not sure if there’s a way in the extension to mimic the :has() class for browsers that don’t support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants