Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Elaina69 authored Apr 1, 2023
1 parent 2034282 commit a296752
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 30 deletions.
Binary file added ElainaV2/assets/Icon/hide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ElainaV2/assets/Icon/visible--v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ElainaV2/configs/ElainaV2_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

"auto_accept": true,

"Aram-only-mode": false,
"Aram-only-mode":true,

"Hide-Champions-Splash-Art": true,
"/______________________________________________________________________________/": "",
Expand Down
11 changes: 2 additions & 9 deletions ElainaV2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ import './resources/Aram-only'
import './resources/Auto-accept'
import './resources/Dodge-button'
import './resources/Offline-mode'
import './resources/Hide_friendlist'
import './resources/Hide_friendlist' // Still in Beta test

//Configs
import data from './configs/ElainaV2_config.json'

//Load CSS file
import './resources/LoadMainCss'

//Console
window.addEventListener('load', () => {
console.log('By Elaina Da Catto');
console.log('Meow ~~~');
console.log(data["custom_log"]);
})
import './resources/LoadMainCss'
47 changes: 30 additions & 17 deletions ElainaV2/resources/Aram-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,38 @@ import data from"../configs/ElainaV2_config.json";

let ARAM = data["Aram-only-mode"];

if(ARAM) {window.addEventListener("load",()=>{
const e=document.createElement("link");
e.href="//plugins/ElainaV2/assets/Css/Addon-Css/Aram-only.css",
e.type="text/css",
e.rel="stylesheet",document.body.append(e)});

let e=e=>{
let t;
t=e.getAttribute("data-screen-name"),
"rcp-fe-lol-parties"==t&&window.setInterval(()=>{
try{
document.querySelector("div[data-game-mode='CLASSIC']").remove(),
document.querySelector("div[data-game-mode='TFT']").remove()
}
catch{}
},100)
if(ARAM) {
window.addEventListener('load', () => {
utils.addCss("//plugins/ElainaV2/assets/Css/Addon-Css/Aram-only.css")
})

let pageChangeMutation = (node) => {
let pagename;
let gamemode;

pagename=node.getAttribute("data-screen-name");

if (pagename == "rcp-fe-lol-parties") {
window.setInterval(()=>{
try{
document.querySelector("div[data-game-mode='CLASSIC']").remove()
document.querySelector("div[data-game-mode='TFT']").remove()
document.querySelector("lol-uikit-navigation-item[data-category='VersusAi']").remove()
document.querySelector("lol-uikit-navigation-item[data-category='Training']").remove()
}
catch{}
try {
gamemode = document.getElementsByClassName("parties-game-navs-list")[0].getAttribute("selectedindex");
if (gamemode == "0") {
document.querySelector('div[data-game-mode=ARAM] div[class=parties-game-type-upper-half]').click()
}
}
catch {}
},10)
}
};

window.addEventListener("load",()=>{
utils.mutationObserverAddCallback(e,["screen-root"])
utils.mutationObserverAddCallback(pageChangeMutation,["screen-root"])
})
}
6 changes: 6 additions & 0 deletions ElainaV2/resources/Auto-accept.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@ let acceptMatchmaking = async () => {
await fetch('/lol-matchmaking/v1/ready-check/accept', { method: 'POST' })

}

window.addEventListener('load', () => {
console.log('By Elaina Da Catto');
console.log('Meow ~~~');
console.log(data["custom_log"]);
})
2 changes: 1 addition & 1 deletion ElainaV2/resources/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ window.setInterval(() => {
document.querySelector("lol-uikit-full-page-backdrop > lol-uikit-dialog-frame > div > div.challenges-identity-customizer-contents > div.challenges-identity-customizer-left-container > div > lol-regalia-identity-customizer-element").
shadowRoot.querySelector("div > div > div.regalia-identity-customizer-crest-wrapper > lol-regalia-crest-v2-element").
shadowRoot.querySelector("div > uikit-state-machine > div.lol-regalia-summoner-icon-mask-container > div").style.backgroundImage = "var(--Avatar)"
}
}
catch {}
try {
document.querySelector("#lol-uikit-tooltip-root > div > div > div.hover-card.right.has-regalia.regalia-loaded > div > div.hover-card-info-container > div.hover-card-identity > lol-regalia-hovercard-v2-element").
Expand Down
2 changes: 1 addition & 1 deletion ElainaV2/resources/Hide_friendlist.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ElainaV2/resources/Watermark.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function ElainaTrigger() {

wtmark.addEventListener("click", () => {
count += 1;
if (count > 0) {
if (count > 5) {
wtmark.style.visibility = "hidden"
Elaina1Image.style.visibility = "visible"
Elaina1Text.innerHTML = "Huh ?";
Expand Down

0 comments on commit a296752

Please sign in to comment.