-
Notifications
You must be signed in to change notification settings - Fork 15
Collapse file tree
Files
Search this repository
/
Copy pathindex (copy) 1.html
More file actions
More file actions
Latest commit
217 lines (185 loc) · 14.4 KB
/
index (copy) 1.html
File metadata and controls
217 lines (185 loc) · 14.4 KB
You must be signed in to make or propose changes
More edit options
Edit and raw actions
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<title>Freedombrowser</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
<script>
//Chat here
//right now i am adding code to change where the plus is
//massive logic error i have i am going to go eat now I know how to fix though
//
//
//
// let cnumber = parseInt(event.target.id.split("-")[2]);
// x3d=0
// console.log("c",cnumber);
// const closeButtons = document.querySelectorAll('.chrome-tab-close');
// closeButtons.forEach(button => {
// let rnumber = button.id.split("-")[2];
// //console.log("render",rnumber);
// console.log(tabs.textContent)
// if (rnumber > cnumber) {
// console.log("r2",rnumber);
// tabs.textContent = tabs.textContent.replace(`#tab-num-${one} { transform: translate3d(${one * 239}px, 0, 0); }\n\n`,`#tab-num-${rnumber} { transform: translate3d(${rnumber * 239}px, 0, 0); }\n\n`);
// console.log(tabs.textContent)
// }
// });
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const addressBar = document.querySelector('.addressbar-urlbar-225461');
const tabContent = document.querySelector('.browser-tab-content-164148');
const rhNewTab = document.querySelector('.rhpages-357971.rhnewtab-340432');
const svgElement = document.querySelector('.chrome-tabs-newtab-btn-682118');
const containerDiv = document.querySelector('.chrome-tabs-content-769439');
const inputField = document.querySelector('.rhnewtab-oldui-container-323542');
const iframe = document.createElement('iframe');
const tabs = document.querySelector('#tabs');
let leftCounter = 249;
let one = 1;
let x3d=0;
let tab_title="New Tab";
function convertURL(inputURLdirect) {
let prefix = "https://noctura.tech/~/uv/";
let encodedURL = encodeURIComponent(inputURLdirect);
let convertedURL = prefix + encodedURL;
return convertedURL;
}
svgElement.addEventListener('click', function() {
const newTabElement = document.createElement('div');
const containerDiv = document.querySelector('.chrome-tabs-content-769439');
newTabElement.className = 'chrome-tab';
newTabElement.innerHTML = `<div class="chrome-tab" style="width: 258px; " id="tab-num-${one}">
<div class="chrome-tab-dividers"></div>
<div class="chrome-tab-background">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"><defs><symbol id="chrome-tab-geometry-left" viewBox="0 0 214 36"><path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path></symbol><symbol id="chrome-tab-geometry-right" viewBox="0 0 214 36"><use xlink:href="#chrome-tab-geometry-left"></use></symbol><clipPath id="crop"><rect class="mask" width="100%" height="100%" x="0"></rect></clipPath></defs><svg width="52%" height="100%"><use xlink:href="#chrome-tab-geometry-left" width="214" height="36" class="chrome-tab-geometry"></use></svg><g transform="scale(-1, 1)"><svg width="52%" height="100%" x="-100%" y="0"><use xlink:href="#chrome-tab-geometry-right" width="214" height="36" class="chrome-tab-geometry"></use></svg></g></svg>
</div>
<div class="chrome-tab-content">
<div class="chrome-tab-favicon" hidden="" ></div>
<div class="chrome-tab-title">${tab_title}</div>
<div class="chrome-tab-drag-handle" style="touch-action: none;"></div>
<div class="chrome-tab-close" id="close-num-${one+1}"></div>
</div>
</div>`;
containerDiv.appendChild(newTabElement);
leftCounter += 239;
svgElement.style.left = `${leftCounter}px`;
tabs.textContent += `#tab-num-${one} { transform: translate3d(${one * 239}px, 0, 0); }\n\n`;
one++;
});
containerDiv.addEventListener('click', function(event) {
if (event.target.classList.contains('chrome-tab-close')) {
const tabToRemove = event.target.closest('.chrome-tab');
leftCounter -= 239;
svgElement.style.left = `${leftCounter}px`;
tabToRemove.remove();
one--;
tabs.textContent = tabs.textContent.replace(`#tab-num-${one} { transform: translate3d(${one * 239}px, 0, 0); }\n\n`,"");
}
});
addressBar.addEventListener('keypress', function(event) {
if (event.key === 'Enter') {
const url = addressBar.textContent;
iframe.src = url;
iframe.referpolicy = 'no-referrer';
iframe.sandbox = 'allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts'
iframe.style.display = 'block';
iframe.className = "browser-tab-content-iframe";
tabContent.appendChild(iframe);
tabContent.style.display = 'block';
rhNewTab.remove();
}
});;
inputField.addEventListener('keypress', function(event) {
if (event.key === 'Enter') {
const url2 = inputField.value;
iframe.src = url2;
let inputURLdirect = url2;
let convertedURL = convertURL(inputURLdirect);
console.log(convertedURL);
iframe.referpolicy = 'no-referrer';
iframe.sandbox = 'allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts'
iframe.style.display = 'block';
iframe.className = "browser-tab-content-iframe";
tabContent.appendChild(iframe);
tabContent.style.display = 'block';
rhNewTab.remove();
}
});
});;
</script>
</head>
<body>
<noscript>You're going to need to enable JavaScript to run this browser.</noscript>
<div id="root">
<div class="browser-842968">
<div class="chrome-tabs-302372" data-chrome-tabs-instance-id="0" style="--tab-content-margin: 9px;">
<div class="chrome-tabs-content-769439">
<div class="chrome-tab" active="" style="width: 258px;">
<div class="chrome-tab-dividers"></div>
<div class="chrome-tab-background">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="chrome-tab-geometry-left" viewBox="0 0 214 36">
<path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path>
</symbol>
<symbol id="chrome-tab-geometry-right" viewBox="0 0 214 36">
<use xlink:href="#chrome-tab-geometry-left"></use>
</symbol>
<clipPath id="crop">
<rect class="mask" width="100%" height="100%" x="0"></rect>
</clipPath>
</defs>
<svg width="52%" height="100%">
<use xlink:href="#chrome-tab-geometry-left" width="214" height="36" class="chrome-tab-geometry"></use>
</svg>
<g transform="scale(-1, 1)">
<svg width="52%" height="100%" x="-100%" y="0">
<use xlink:href="#chrome-tab-geometry-right" width="214" height="36" class="chrome-tab-geometry"></use>
</svg>
</g>
</svg>
</div>
<div class="chrome-tab-content">
<div class="chrome-tab-favicon" hidden=""></div>
<div class="chrome-tab-title">Welcome</div>
<div class="chrome-tab-drag-handle" style="touch-action: none;"></div>
<div class="chrome-tab-close" id="close-num-0"></div>
</div>
</div>
</div>
<div class="chrome-tabs-bottom-bar-100459"></div>
<div class="chrome-tabs-newtab-btn-682118" style="left: 249px;">
<div title="New tab">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill-rule="evenodd" class="browser-bar-btn-356449 browser-bar-btn--450443enabled" viewBox="0 0 24 24">
<path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 21 12 h -8 v 8 h -3 v -8 H 2 v -3 h 8 V 2 h 3 v 8 h 8 Z"></path>
</svg>
</div>
</div>
<style id="tabs">
</style>
</div>
<div class="chrome-tabs-optional-shadow-below-bottom-bar-717508"></div>
<div class="browser-tab-957715">
<div class="browser-bar-497464"><div><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill-rule="evenodd" class="browser-bar-btn-356449 browser-bar-btn--450443disabled" viewBox="0 0 32 32"><path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 4.22 14.03 C 3.53 14.15 3 14.77 3 15.5 C 3 16.25 3.53 16.86 4.24 16.98 L 4.02 17.19 L 14.36 27.51 C 14.65 27.81 15.05 28 15.5 28 C 16.33 28 17 27.33 17 26.5 C 17 26.05 16.8 25.65 16.49 25.38 L 16.55 25.32 L 8.22 17 L 27.51 17 C 28.33 17 29 16.33 29 15.5 C 29 14.67 28.33 14 27.51 14 L 8.2 14 L 16.55 5.66 C 16.81 5.34 17 4.94 17 4.5 C 17 3.68 16.33 3 15.5 3 C 15.06 3 14.66 3.2 14.39 3.5 L 14.36 3.47 L 4 13.81 Z"></path></svg></div><div style="height:1px;width:5px"></div><div><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill-rule="evenodd" class="browser-bar-btn-356449 browser-bar-btn--450443disabled" viewBox="0 0 32 32"><path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 27.78 14.03 C 28.47 14.15 29 14.77 29 15.5 C 29 16.25 28.47 16.86 27.76 16.98 L 27.98 17.19 L 17.64 27.51 C 17.35 27.81 16.95 28 16.5 28 C 15.67 28 15 27.33 15 26.5 C 15 26.05 15.2 25.65 15.51 25.38 L 15.45 25.32 L 23.78 17 L 4.49 17 C 3.67 17 3 16.33 3 15.5 C 3 14.67 3.67 14 4.49 14 L 23.8 14 L 15.45 5.66 C 15.19 5.34 15 4.94 15 4.5 C 15 3.68 15.67 3 16.5 3 C 16.94 3 17.34 3.2 17.61 3.5 L 17.64 3.47 L 28 13.81 Z"></path></svg></div><div style="height:1px;width:5px"></div><div><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill-rule="evenodd" class="browser-bar-btn-356449 browser-bar-btn--450443enabled" viewBox="0 0 32 32"><path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 25.1 20.15 L 25.08 20.14 C 23.51 23.59 20.04 26 16 26 C 10.48 26 6 21.52 6 16 C 6 10.48 10.48 6 16 6 C 19.02 6 21.72 7.34 23.55 9.45 L 23.55 9.45 L 19 14 L 25.8 14 L 28.83 14 L 30 14 L 30 3 L 25.67 7.33 C 23.3 4.67 19.85 3 16 3 C 8.82 3 3 8.82 3 16 C 3 23.18 8.82 29 16 29 C 21.27 29 25.8 25.86 27.84 21.34 C 27.96 21.13 28.03 20.88 28.03 20.61 C 28.03 19.78 27.36 19.11 26.53 19.11 C 25.87 19.11 25.3 19.55 25.1 20.15 Z"></path></svg></div><div style="height:1px;width:8px"></div><div class="addressbar-485342" style="outline:0;background-color:#f1f3f4"><div style="height:1px;width:5px"></div><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill-rule="evenodd" class="browser-bar-btn-356449 addressbar-btn-745412" viewBox="0 0 20 20"><path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 9 14 h 2 v -4 H 9 v 4 Z m 1 -12 c -4.42 0 -8 3.58 -8 8 c 0 4.42 3.58 8 8 8 c 4.42 0 8 -3.58 8 -8 c 0 -4.42 -3.58 -8 -8 -8 Z m 0 14 c -3.31 0 -6 -2.69 -6 -6 c 0 -3.31 2.69 -6 6 -6 c 3.31 0 6 2.69 6 6 c 0 3.31 -2.69 6 -6 6 Z M 9 8 h 2 V 6 H 9 v 2 Z"></path></svg><div class="addressbar-urlbar-225461" contenteditable="true" spellcheck="false"></div></div><div style="height:1px;width:5px"></div><div title="Click to open AB cloaked. Ctrl+click to open full url."><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill-rule="evenodd" class="browser-bar-btn-356449 browser-bar-btn--450443disabled" viewBox="0 0 48 48"><path stroke-width="0px" stroke-linecap="round" shape-rendering="geometricPrecision" d="M 38 38 H 10 V 10 h 14 V 6 H 10 c -2.21 0 -4 1.79 -4 4 v 28 c 0 2.21 1.79 4 4 4 h 28 c 2.21 0 4 -1.79 4 -4 V 24 h -4 v 14 Z M 28 6 v 4 h 7.17 L 15.51 29.66 l 2.83 2.83 L 38 12.83 V 20 h 4 V 6 H 28 Z"></path></svg></div></div>
<div class="browser-tab-content-164148" style="display: block;">
<h1 class="welcome" style="display: block; text-align: center;">Welcome to FreedomBrowser's Proxy Service!</h1>
</div>
<div class="rhpages-357971 rhnewtab-340432" style="display: none;">
<div class="rhnewtab-header-729107"><div></div><img src="https://infrared.stonklat.com/ir.png" width="300px"><div style="justify-self: end;"></div></div>
<center>
<b><p class="rhnewtab-msg-520849">Freedom Browser Presents INFRARED Proxy</p></b>
</center>
<div class="rhnewtab-oldui-container-323542">
<p class="rhnewtab-oldui-msg-492347">Input your URL directly: </p>
<input type="text" placeholder="https://www.google.com" spellcheck="false">
</div>
<div class="rhnewtab-version-container-485312" hidden="" ><p class="rhnewtab-version-number-395166">FrontEnd: Rammerhead</p><p class="rhnewtab-version-number-395166">Backend: Ultraviolet</p></div>
</div>
</div>
</div>
</div>
</body>
</html>