Skip to content

A simple Chromium extension that fixes the problem of wide profile pictures in Mashov

Notifications You must be signed in to change notification settings

itayoshri/MashovWidePPFixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Mashov Wide Profile Picture Fixer

A simple Chromium extension that fixes the problem of wide profile pictures in Mashov

An example of the problem

A simple script that can be written in the console and fixes the problem:

const studentProfilePicture = document.getElementsByClassName('mshv-student-thumbnail')[0]

const pictureOriginalWidth = studentProfilePicture.naturalWidth;
const pictureOriginalHeight = studentProfilePicture.naturalHeight;

const pictureWidth = studentProfilePicture.width;

const ratio = pictureOriginalWidth/pictureWidth;
const PX = 'px'

studentProfilePicture.style.height = pictureOriginalHeight/ratio + PX    

About

A simple Chromium extension that fixes the problem of wide profile pictures in Mashov

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published