mobbin

just a mobbin extractor!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         mobbin
// @namespace    http://tampermonkey.net/
// @version      0.0.2
// @description  just a mobbin extractor!
// @author       You
// @match        https://mobbin.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=mobbin.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
  'use strict';
  function extractForFlows(){
    var asides=document.querySelectorAll("aside.sticky");
    for(const aside of asides){
      aside.setAttribute("style","display:none;");
    }
    var containers=document.querySelectorAll(".group .grow");
    for(const container of containers){
      var containerClass=container.getAttribute("class");
      containerClass=containerClass.replace("blur-0","");
      containerClass=containerClass.replace("after:backdrop-blur-[10px]","");
      containerClass=containerClass.replace("after:bg-neutral-white/40","");
      container.setAttribute("class",containerClass);
    }
    var images = document.querySelectorAll(".group .grow img");
    for(const image of images){
      var imageSrc=image.getAttribute("src");
      var index=imageSrc.indexOf("?");
      if(index>=0){
        imageSrc=imageSrc.substring(0,index);
        image.setAttribute("src",imageSrc);
      }
    }
  }
  function extractForScreens(){
    var asides=document.querySelectorAll("aside.sticky");
    for(const aside of asides){
      aside.setAttribute("style","display:none;");
    }
    var containers=document.querySelectorAll(".group .relative");
    for(const container of containers){
      var containerClass=container.getAttribute("class");
      containerClass=containerClass.replace("blur-0","");
      containerClass=containerClass.replace("after:backdrop-blur-[10px]","");
      containerClass=containerClass.replace("after:bg-neutral-white/40","");
      container.setAttribute("class",containerClass);
    }
    var images = document.querySelectorAll(".group .relative img");
    for(const image of images){
      var imageSrc=image.getAttribute("src");
      var index=imageSrc.indexOf("?");
      if(index>=0){
        imageSrc=imageSrc.substring(0,index);
        image.setAttribute("src",imageSrc);
      }
    }
  }
  function extractForUIElements(){
    var asides=document.querySelectorAll("aside.sticky");
    for(const aside of asides){
      aside.setAttribute("style","display:none;");
    }
    var containers=document.querySelectorAll(".group .relative");
    for(const container of containers){
      var containerClass=container.getAttribute("class");
      containerClass=containerClass.replace("blur-0","");
      containerClass=containerClass.replace("after:backdrop-blur-[10px]","");
      containerClass=containerClass.replace("after:bg-neutral-white/40","");
      container.setAttribute("class",containerClass);
    }
    var images = document.querySelectorAll(".group .relative img");
    for(const image of images){
      var imageSrc=image.getAttribute("src");
      var index=imageSrc.indexOf("?");
      if(index>=0){
        imageSrc=imageSrc.substring(0,index);
        image.setAttribute("src",imageSrc);
      }
    }
  }
  setInterval(function(){
    extractForFlows();
    extractForScreens();
    extractForUIElements();
  },800);
})();