mirror of
https://github.com/NohamR/AutoEnt.git
synced 2025-05-24 14:22:02 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c8e6f248a3 | ||
![]() |
4dbbf205a8 | ||
![]() |
c6fe0fd263 | ||
![]() |
db40d79d6b |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
.DS_Store
|
29
README.md
Normal file
29
README.md
Normal file
@ -0,0 +1,29 @@
|
||||
# 2024 News :
|
||||
**La page de connexion a été modifiée, rendant l’extension inutilisable.**
|
||||
|
||||
# Extension Chrome AutoEnt
|
||||
|
||||
AutoEnt est une extension Chrome qui débloque gratuitement tous les articles sur Annabac. Dites adieu aux barrières de paiement et accédez aux contenus Annabac sans aucune restriction.
|
||||
|
||||
## Installation
|
||||
|
||||
1. Téléchargez l'archive .zip de l'extension [ici](https://github.com/NohamR/AutoEnt/releases/latest) et déziper la.
|
||||
|
||||
2. Allez sur [chrome://extensions/](chrome://extensions/).
|
||||
Activez le mode "Développeur" dans le coin supérieur droit.
|
||||
Cliquez sur "Charger l'extension non empaquetée" et sélectionnez le dossier de l'extension.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
3. Cliquez sur l'icon de l'extension pour paramétrer votre identifiant et votre mot de passe habituel.
|
||||

|
||||
|
||||
Les identifiants et mot de passe sont stockés localement sur votre machine et ne seront jamais partagés. Pour en être sûr les script utilisant les mots de passe sont les suivants : [content.js](content.js) [popup.js](dupe/popup.js)
|
||||
|
||||
## Utilisation
|
||||
Le nom d'utilisateur et le mot de passe seront automatiquement remplis. Le bouton "se connecter" est cliqué toutes les deux secondes.
|
||||
|
||||
## Avertissement
|
||||
Cette extension est destinée à des fins éducatives et informatives uniquement. Le développeur n'est pas responsable de tout usage abusif ou d'un accès non autorisé au contenu.
|
@ -1,21 +1,18 @@
|
||||
// background.js
|
||||
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
|
||||
if (request.updateBadge) {
|
||||
chrome.action.setBadgeText({ text: request.badgeText });
|
||||
chrome.action.setBadgeBackgroundColor({ color: [49, 102, 136, 255] });
|
||||
|
||||
setTimeout(function() {
|
||||
chrome.action.setBadgeText({ text: '' }); // Clear the badge text
|
||||
chrome.action.setBadgeText({ text: '' });
|
||||
}, 4000);
|
||||
}
|
||||
});
|
||||
|
||||
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
|
||||
if (changeInfo.status === 'loading') {
|
||||
// Check if the tab's URL matches your specified URLs
|
||||
const matchesURL = /^https:\/\/(ent\.iledefrance\.fr|iledefrance\.fr)\//.test(tab.url);
|
||||
|
||||
// Update the icon based on whether the tab matches your specified URLs
|
||||
chrome.action.setIcon({
|
||||
tabId: tabId,
|
||||
path: matchesURL ? {
|
||||
@ -23,9 +20,9 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
|
||||
"48": "images/icon48.png",
|
||||
"128": "images/icon128.png"
|
||||
} : {
|
||||
"16": "images/grey/icon16.png", // Greyed-out icon
|
||||
"48": "images/grey/icon48.png", // Greyed-out icon
|
||||
"128": "images/grey/icon128.png" // Greyed-out icon
|
||||
"16": "images/grey/icon16.png",
|
||||
"48": "images/grey/icon48.png",
|
||||
"128": "images/grey/icon128.png"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1,20 +1,9 @@
|
||||
// custom.js
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get a reference to the form and the button
|
||||
const form = document.getElementById('loginForm');
|
||||
const saveButton = document.getElementById('saveButton');
|
||||
|
||||
// Add an event listener to the button click event
|
||||
saveButton.addEventListener('click', function (event) {
|
||||
// Prevent the default form submission
|
||||
event.preventDefault();
|
||||
|
||||
// You can add your custom logic here
|
||||
// For example, you can validate the form inputs and perform other actions
|
||||
// If you want to submit the form via AJAX, you can do that here.
|
||||
|
||||
// For demonstration purposes, let's just log a message
|
||||
console.log('Form submission prevented.');
|
||||
});
|
||||
});
|
||||
|
@ -58,22 +58,4 @@
|
||||
</body>
|
||||
<script src="popup.js"></script>
|
||||
<script src="custom.js"></script>
|
||||
<!-- <script>
|
||||
// Get a reference to the form and the button
|
||||
const form = document.getElementById('loginForm');
|
||||
const saveButton = document.getElementById('saveButton');
|
||||
|
||||
// Add an event listener to the button click event
|
||||
saveButton.addEventListener('click', function (event) {
|
||||
// Prevent the default form submission
|
||||
event.preventDefault();
|
||||
|
||||
// You can add your custom logic here
|
||||
// For example, you can validate the form inputs and perform other actions
|
||||
// If you want to submit the form via AJAX, you can do that here.
|
||||
|
||||
// For demonstration purposes, let's just log a message
|
||||
console.log('Form submission prevented.');
|
||||
});
|
||||
</script> -->
|
||||
</html>
|
||||
|
@ -3,7 +3,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
const passwordInput = document.getElementById('password');
|
||||
const saveButton = document.getElementById('saveButton');
|
||||
|
||||
// Charger les valeurs précédemment enregistrées depuis le stockage local
|
||||
chrome.storage.local.get(['email', 'password'], function (data) {
|
||||
if (data.email) {
|
||||
emailInput.value = data.email;
|
||||
@ -13,14 +12,11 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
});
|
||||
|
||||
// Enregistrer les valeurs lors du clic sur le bouton "Enregistrer"
|
||||
saveButton.addEventListener('click', function () {
|
||||
const email = emailInput.value;
|
||||
const password = passwordInput.value;
|
||||
|
||||
// Enregistrer les valeurs dans le stockage local de l'extension
|
||||
chrome.storage.local.set({ email, password }, function () {
|
||||
// Fermer la fenêtre contextuelle après l'enregistrement
|
||||
window.close();
|
||||
});
|
||||
});
|
||||
|
@ -3,7 +3,10 @@
|
||||
"name": "AutoEnt",
|
||||
"version": "1.4",
|
||||
"description": "Rempli l'id et mdp et clique sur connexion",
|
||||
"permissions": ["activeTab", "storage"],
|
||||
"permissions": [
|
||||
"activeTab",
|
||||
"storage"
|
||||
],
|
||||
"host_permissions": [
|
||||
"https://ent.iledefrance.fr/*",
|
||||
"https://iledefrance.fr/*"
|
||||
@ -14,7 +17,9 @@
|
||||
"https://ent.iledefrance.fr/*",
|
||||
"https://iledefrance.fr/*"
|
||||
],
|
||||
"js": ["content.js"]
|
||||
"js": [
|
||||
"content.js"
|
||||
]
|
||||
}
|
||||
],
|
||||
"background": {
|
||||
@ -34,5 +39,4 @@
|
||||
"128": "images/grey/icon128.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
BIN
readme/charger-extension.png
Normal file
BIN
readme/charger-extension.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
BIN
readme/extension.png
Normal file
BIN
readme/extension.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
BIN
readme/mode-dev.png
Normal file
BIN
readme/mode-dev.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
readme/parametre.png
Normal file
BIN
readme/parametre.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 KiB |
Loading…
x
Reference in New Issue
Block a user