Skip to content

Commit

Permalink
add: close button
Browse files Browse the repository at this point in the history
  • Loading branch information
amirshnll committed Apr 10, 2024
1 parent e73dd4a commit f59052d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/version-1.2.0-blue" alt="version">
<img src="https://img.shields.io/badge/version-1.3.0-blue" alt="version">
<img src="https://img.shields.io/badge/Firefox extension rating-★★★★☆-brightgreen" alt="rating">
<br/>
<a href="https://twitter.com/intent/follow?screen_name=rtbf_ir">
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Right to be forgotten",
"version": "1.2.0",
"version": "1.3.0",
"description": "نداشتن امکان حذف حساب‌کاربری در بسیاری از سرویس‌ها نقض حریم‌شخصی کاربران است که با حق فراموش شدن برای حذف اطلاعات، مغایرت دارد.",
"icons": {
"48": "assets/images/logo.png",
Expand Down
13 changes: 13 additions & 0 deletions popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,16 @@
padding: 15px 15px 0px 15px;
direction: rtl;
}

.close-button {
color: red;
cursor: pointer;
background: none;
border: none;
font-size: 13px;
font-family: dana;
direction: rtl;
position: absolute;
top: 12px;
left: 10px
}
6 changes: 4 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta charset="UTF-8" />
<title>rtbf.ir</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous" />
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<link rel="stylesheet" href="popup.css">
<link rel="stylesheet" href="popup.css" />
</head>

<body style=" margin: 0; padding: 0; height: 100%; font-family: dana, serif;">
<h1 class="plugin-title">وضعیت حق فراموش شدن <span class="service-name"></span></h1>
<button id="closeButton" class="close-button">x بستن</button>

<div class="popup-container">
<div class="difficulty-container">
<div class="difficulty-box">
Expand Down
11 changes: 11 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,14 @@ browser?.tabs?.query(
});
}
);

document.addEventListener("DOMContentLoaded", function () {
var closeButton = document.getElementById("closeButton");
closeButton.addEventListener(
"click",
function () {
window.close();
},
false
);
});

0 comments on commit f59052d

Please sign in to comment.