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
export function cloneShadowRoots(sourceElement: Element, targetElement: Element) { | |
// If the source element has a Shadow DOM | |
const shadowRoot = sourceElement.shadowRoot; | |
if (shadowRoot !== null) { | |
// Create a new Shadow Root for the target element | |
const copiedShadowRoot = targetElement.attachShadow({ mode: shadowRoot.mode }); | |
// Clone the contents of the original ShadowRoot manually | |
const originalShadowContent = shadowRoot.innerHTML; |
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
// ==UserScript== | |
// @name Show PersonData QR Code | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author You | |
// @match https://web.timify.com/* | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @require https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js | |
// @grant none |
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
FROM jenkins | |
USER root | |
RUN groupadd -g 999 hostdocker && usermod -G hostdocker -a jenkins | |
RUN wget https://get.docker.io/builds/Linux/x86_64/docker-1.7.1 -O /usr/local/bin/docker && chmod +x /usr/local/bin/docker | |
USER jenkins | |
ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"] |