Image Popup - usasexguide.nl

1/4/2021, 5:45:35 PM

Versión del día 05/01/2021. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name        Image Popup - usasexguide.nl
// @namespace   Violentmonkey Scripts
// @match       http://www.usasexguide.nl/forum/*
// @grant       none
// @version     1.0
// @author      -
// @description 1/4/2021, 5:45:35 PM
// ==/UserScript==

let $head = document.querySelector('head')
let $link = document.createElement('link')
$link.rel = 'stylesheet'
$link.href = '//cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css'
let $script = document.createElement('script')
$script.type = 'text/javascript'
$script.src = '//cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js'
$head.append($link)
$head.append($script)
setTimeout(() => {
  jQuery('.attachments .postcontent a').addClass('glightbox')
  let lightbox = GLightbox({})
  console.log('done')
}, 2000)