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
<style> | |
#callframe { | |
height: 75vh; | |
min-height: 400px; | |
} | |
</style> | |
<script crossorigin src="https://unpkg.com/@daily-co/daily-js"></script> | |
<script> |
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
<script src="https://getvideosync.com/js/vs-helpers.js"></script> | |
<script> | |
var isRegister = window.location.href.indexOf('register') > -1; | |
if (isRegister) { | |
waitForElement('.modal', handleModalClose); | |
} | |
function handleModalClose(modalNode) { | |
var config = { |
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
<script> | |
/** | |
* To add this to links in the page, add data variable data-inject-qs to the link. | |
* For example: | |
* <a href="https://google.fi" data-inject-qs>Google</a> | |
* | |
* And If current url is /something?hello=world, it will inject ?hello=world to that link | |
* It will became https://google.fi?hello=world | |
* | |
**/ |
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
(function() { | |
function sc(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); | |
var expires = 'expires='+d.toUTCString(); | |
document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/'; | |
} | |
function gc(cname) { | |
var name = cname + '='; |
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
<script src="https://getvideosync.com/js/vs-helpers.js"></script> | |
<script> | |
var url = window.location.href; | |
if (url.indexOf('/register') > -1) { | |
waitForElement('.register-form', function(el) { | |
el.setAttribute('autocomplete', 'off') | |
}); | |
} |
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
<script> | |
var slideImgEl; | |
// Change slidename you want to have a link | |
var slideName = '/2.jpg'; | |
// Link URL | |
var linkUrl = 'https://www.skistar.com/sv/skistarliving/kop/are/are-by/brf-are-village-2-85m2-UgE/#broker'; | |
var observer = new MutationObserver(function(mutations) { |
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
<script> | |
var url = window.location.href; | |
/* wait for element to be ready and then change text */ | |
function tryEl(e) { | |
var privEl = document.querySelector('.register-form .privacyread span'); | |
if (!privEl) { | |
window.requestAnimationFrame(tryEl); | |
} else { | |
changeText(privEl); |
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
<script> | |
/* wait for element to be ready */ | |
function tryEl(e) { | |
var privEl = document.querySelector('.comment-feed-header')[0]; | |
if (!privEl) { | |
window.requestAnimationFrame(tryEl); | |
} else { | |
changeAndClick(privEl); | |
} |