-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
106 lines (96 loc) · 3.73 KB
/
popup.html
File metadata and controls
106 lines (96 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RTL Settings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<!-- Tab Navigation -->
<div class="tabs">
<button class="tab-button active" data-tab="settings">Settings</button>
<button class="tab-button" data-tab="about">About</button>
</div>
<!-- Settings Tab -->
<div id="settingsTab" class="tab-content active">
<h2>RTL Text Direction</h2>
<div class="setting-item">
<label for="rtlSwitch">
<span class="label-text">RTL Direction</span>
<div class="switch">
<input type="checkbox" id="rtlSwitch">
<span class="slider"></span>
</div>
</label>
</div>
<div class="setting-item">
<label for="fontSwitch">
<span class="label-text">Tahoma Font</span>
<div class="switch">
<input type="checkbox" id="fontSwitch">
<span class="slider"></span>
</div>
</label>
</div>
<div class="setting-item">
<label for="bothSwitch">
<span class="label-text">Both (RTL + Tahoma)</span>
<div class="switch">
<input type="checkbox" id="bothSwitch">
<span class="slider"></span>
</div>
</label>
</div>
<div class="domain-info">
<small id="currentDomain">Current domain: Loading...</small>
</div>
</div>
<!-- About Tab -->
<div id="aboutTab" class="tab-content">
<div class="about-content">
<div class="about-section">
<h3>RTL Browser Extension</h3>
<p class="version">Version 1.0</p>
</div>
<div class="about-section">
<h4>Developer</h4>
<div class="developer-info">
<p class="dev-name">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>
<span id="developerName">Mojtaba Mehrara</span>
</p>
<p class="dev-email">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
<a href="https://github.com/DigitalEntryPoint/rtl-browser-extension" target="_blank" id="developerGithub">this project on github</a>
</p>
</div>
</div>
<div class="about-section">
<h4>Description</h4>
<p class="description">
This extension allows you to change text direction to RTL (Right-to-Left) and apply custom fonts on a per-domain basis. Perfect for reading content in Persian, Arabic, Hebrew, and other RTL languages.
</p>
</div>
<div class="about-section">
<h4>Features</h4>
<ul class="features-list">
<li>RTL text direction control</li>
<li>Tahoma font application</li>
<li>Combined RTL + Font mode</li>
<li>Per-domain settings storage</li>
<li>Automatic settings restore</li>
</ul>
</div>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>