You are on page 1of 2

// ==UserScript==

// @name BLS 🇪🇸 PAYMENTS CIB CARTE D'OR


// @namespace Community is F!rst
// @version v2
// @description PAYEZ VOS rendez vous EN TOUTE SÉCURITÉ
// @author Benaissa Fouad
// @match
https://epay.poste.dz/payment/merchants/AIRALGERIE/payment_fr.html?*
// @match https://cib.satim.dz/payment/merchants/SATIM/payment_en.html?*
// @match https://epay.poste.dz/payment/merchants/MOBILIS/*
// @match https://epay.poste.dz/payment/merchants/*
// @match https://cib.satim.dz/payment*
// @match https://epay.poste.dz/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=satim.dz
// @grant none
// ==/UserScript==
(function() {
'use strict';
var expectedAuthor = "FOUAD BENAISSA";
if (GM_info.scriptMetaStr.indexOf("@author " + expectedAuthor) === -1) {
console.error("‫ تم تغيير‬:‫@ خطأ‬author. eurror.");
return;
}
})();
(function() {
'use strict';
// Define an array of card data
var cardData = [
{
number_card: "6280703025253030",
cvc: "122",
month: "10",
year: "2026",
name_card: "FOUAD BENAISSA"
},
{
number_card: "6280703*********",
cvc: "000",
month: "00",
year: "20**",
name_card: "USERNAME II "
}
];
// Create a div to contain the buttons
var buttonContainer = document.createElement("div");
buttonContainer.style.position = "fixed";
buttonContainer.style.top = "80px";
buttonContainer.style.left = "600px";
document.body.appendChild(buttonContainer);

// Function to add buttons with a delay


function addButtonWithDelay(data, delay, container) {
setTimeout(function() {
var button = document.createElement("button");
button.textContent = data.name_card;
button.style.padding = "10px 20px";
button.style.margin = "5px";
button.style.backgroundColor = "#04ba47";
button.style.color = "white";
button.style.border = "1px solid #3498db";
button.style.borderRadius = "20px";
button.style.cursor = "pointer";
button.addEventListener("click", function() {
fillCardData(data);
});
container.appendChild(button);
}, delay);
}

// Loop through card data and add buttons with a delay


for (var i = 0; i < cardData.length; i++) {
addButtonWithDelay(cardData[i], i * 1, buttonContainer);
}

// Function to fill card data into input fields


function fillCardData(data) {
document.querySelector("#iPAN").value = data.number_card;
document.querySelector("#iCVC").value = data.cvc;
document.querySelector("#month").value = data.month;
document.querySelector("#year").value = data.year;
document.querySelector("#iTEXT").value = data.name_card;
}
})();

You might also like