View svelteComponentRecaptcha.svelte
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
// Due to the nature of svelte, implementing recaptcha inside a svelte component by following the official documentation | |
// can lead to DOM issue. | |
// The best way I find is to render the recaptcha inside onMount | |
<script> | |
import { onMount } from 'svelte'; | |
onMount(async () => { | |
window.grecaptcha.ready(() => { | |
grecaptcha.render('recaptcha-id', { sitekey: YOUR_SITE_KEY }) |
View bonjourepi.user.js
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
// ==UserScript== | |
// @name BonjourEpi | |
// @namespace BonjourEpi | |
// @description BonjourMadame sur l'intra d'Epitech ? | |
// @match https://intra.epitech.eu/* | |
// @version 1 | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @run-at document-start | |
// ==/UserScript== |