Skip to content

Commit

Permalink
Merge pull request #49 from HuiiBuh/features
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
HuiiBuh authored Jul 17, 2019
2 parents f23cac6 + 9422c36 commit b4b0c5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions chrome/js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const nameClass = "_7UhW9 fKFbl yUEEX KV-D4 fDxYl";
const editProfileClass = "_0mzm- sqdOP L3NKy _4pI4F _8A5w5 ";

/*_________________________________________*/
let downloadButton = "";

Expand Down Expand Up @@ -88,15 +91,18 @@ async function main() {
i = 0;

} else if (url.includes("instagram.com/") && !url.includes("instagram.com/p/") && !url.includes("instagram.com/tv/") && !(/\/channel\/$/.test(url)) || (/\/saved\/$/.test(url)) || (/\/tagged\/$/.test(url))) {
let a = document.getElementsByClassName("_7UhW9 fKFbl yUEEX KV-D4 fDxYl").length;

let a = document.getElementsByClassName(nameClass).length > 0;
let b = hoverPictures.length > 0;
let c = hoverPictures.length !== oldHover;

// man geht nicht immer in die
if (document.getElementsByClassName("_7UhW9 fKFbl yUEEX KV-D4 fDxYl").length > 0 && hoverPictures.length > 0
&& hoverPictures.length !== oldHover
|| url.includes("instagram.com/explore/") && hoverPictures.length > 0 && hoverPictures.length !== oldHover
&& document.getElementsByClassName("_0mzm- sqdOP L3NKy _4pI4F _8A5w5 ").length === 0) {
let d = url.includes("instagram.com/explore/");
let e = hoverPictures.length > 0;
let f = hoverPictures.length !== oldHover;
let g = document.getElementsByClassName(editProfileClass).length === 0;

// man geht nicht immer in die
if (a && b && c || d && e && f && g) {
if (document.getElementsByClassName("-vDIg").length > 0) {
profilePictureButton.removeDownloadButton();
profilePictureButton.createHoverable();
Expand All @@ -108,8 +114,6 @@ async function main() {
oldHover = hoverPictures.length;
hoverButton.removeHover();
hoverButton.createHoverable();
} else {
oldHover = -20;
}

oldUrl = "heyyyy";
Expand Down
20 changes: 12 additions & 8 deletions firefox/js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const nameClass = "_7UhW9 fKFbl yUEEX KV-D4 fDxYl";
const editProfileClass = "_0mzm- sqdOP L3NKy _4pI4F _8A5w5 ";

/*_________________________________________*/
let downloadButton = "";

Expand Down Expand Up @@ -88,15 +91,18 @@ async function main() {
i = 0;

} else if (url.includes("instagram.com/") && !url.includes("instagram.com/p/") && !url.includes("instagram.com/tv/") && !(/\/channel\/$/.test(url)) || (/\/saved\/$/.test(url)) || (/\/tagged\/$/.test(url))) {
let a = document.getElementsByClassName("_7UhW9 fKFbl yUEEX KV-D4 fDxYl").length;

let a = document.getElementsByClassName(nameClass).length > 0;
let b = hoverPictures.length > 0;
let c = hoverPictures.length !== oldHover;

// man geht nicht immer in die
if (document.getElementsByClassName("_7UhW9 fKFbl yUEEX KV-D4 fDxYl").length > 0 && hoverPictures.length > 0
&& hoverPictures.length !== oldHover
|| url.includes("instagram.com/explore/") && hoverPictures.length > 0 && hoverPictures.length !== oldHover
&& document.getElementsByClassName("_0mzm- sqdOP L3NKy _4pI4F _8A5w5 ").length === 0) {
let d = url.includes("instagram.com/explore/");
let e = hoverPictures.length > 0;
let f = hoverPictures.length !== oldHover;
let g = document.getElementsByClassName(editProfileClass).length === 0;

// man geht nicht immer in die
if (a && b && c || d && e && f && g) {
if (document.getElementsByClassName("-vDIg").length > 0) {
profilePictureButton.removeDownloadButton();
profilePictureButton.createHoverable();
Expand All @@ -108,8 +114,6 @@ async function main() {
oldHover = hoverPictures.length;
hoverButton.removeHover();
hoverButton.createHoverable();
} else {
oldHover = -20;
}

oldUrl = "heyyyy";
Expand Down

0 comments on commit b4b0c5c

Please sign in to comment.