Image Popup - usasexguide.nl

Display attached images in a lightbox and remove ads

Από την 13/09/2022. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        Image Popup - usasexguide.nl
// @namespace   Violentmonkey Scripts
// @match       http://www.usasexguide.nl/forum/*
// @grant       none
// @version     1.0.6
// @author      -
// @description Display attached images in a lightbox and remove ads
// @license     MIT
// ==/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'
$head.append($link)
$head.append($script)
$script.onload = () => {
  jQuery('.attachments .postcontent a').addClass('glightbox')
  jQuery('.isgThumbnail.Attachment td>a').addClass('glightbox')
  jQuery('#attachmenttable td>a').addClass('glightbox')
  let lightbox = GLightbox({ height: 648 })
  console.log('done')
}
$script.src = '//cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js';

// Noise Removal
(function() {
var css = `
.isg_background_border_banner,
.isg_banner,
#header a.logo-image,
#uiISGAdFooter,
#toplinks + div,
#navtabs li:nth-child(6),
#navtabs li:nth-child(7),
#navtabs li:nth-child(8),
.below_body
{
  display: none;
}
#postlist .isg_background_border_banner.isg_Blog {
  display: block !important;
}
#pagination_top form.pagination {
  float: left !important;
}
.postrow {
  line-height: 1.3;
}
#postpagestats_above {
  float: none !important;
}
`;
if (typeof GM_addStyle != "undefined") {
  GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
  PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
  addStyle(css);
} else {
  var node = document.createElement("style");
  node.type = "text/css";
  node.appendChild(document.createTextNode(css));
  var heads = document.getElementsByTagName("head");
  if (heads.length > 0) {
    heads[0].appendChild(node);
  } else {
    // no head yet, stick it whereever
    document.documentElement.appendChild(node);
  }
}
  
// Kill the first-click pop-under
window.initPu = () => {}

// Kill the new first-click pop-under - 2022-09-13
setCookieISG('popundrisg', 24*365)
})();