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 |
--------------------------------------------------------------------------------
/src/main/java/com/goxr3plus/javafxwebbrowser/browser/WebBrowserTabController.java:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | */
4 | package main.java.com.goxr3plus.javafxwebbrowser.browser;
5 |
6 | import java.awt.image.BufferedImage;
7 | import java.io.FileOutputStream;
8 | import java.io.IOException;
9 | import java.io.InputStream;
10 | import java.io.UnsupportedEncodingException;
11 | import java.net.CookieHandler;
12 | import java.net.CookieManager;
13 | import java.net.CookiePolicy;
14 | import java.net.CookieStore;
15 | import java.net.HttpCookie;
16 | import java.net.HttpURLConnection;
17 | import java.net.URI;
18 | import java.net.URISyntaxException;
19 | import java.net.URL;
20 | import java.net.URLEncoder;
21 | import java.util.List;
22 | import java.util.logging.Level;
23 | import java.util.logging.Logger;
24 |
25 | import org.apache.commons.validator.routines.UrlValidator;
26 |
27 | import com.jfoenix.controls.JFXButton;
28 |
29 | import javafx.application.Platform;
30 | import javafx.beans.binding.Bindings;
31 | import javafx.beans.property.SimpleListProperty;
32 | import javafx.beans.value.ChangeListener;
33 | import javafx.beans.value.ObservableValue;
34 | import javafx.collections.ObservableList;
35 | import javafx.concurrent.Worker;
36 | import javafx.concurrent.Worker.State;
37 | import javafx.embed.swing.SwingFXUtils;
38 | import javafx.fxml.FXML;
39 | import javafx.fxml.FXMLLoader;
40 | import javafx.geometry.Pos;
41 | import javafx.print.PrinterJob;
42 | import javafx.scene.control.Alert;
43 | import javafx.scene.control.Alert.AlertType;
44 | import javafx.scene.control.CheckMenuItem;
45 | import javafx.scene.control.Label;
46 | import javafx.scene.control.MenuItem;
47 | import javafx.scene.control.ProgressBar;
48 | import javafx.scene.control.ProgressIndicator;
49 | import javafx.scene.control.RadioMenuItem;
50 | import javafx.scene.control.Tab;
51 | import javafx.scene.control.TextField;
52 | import javafx.scene.control.ToggleGroup;
53 | import javafx.scene.control.Tooltip;
54 | import javafx.scene.image.ImageView;
55 | import javafx.scene.input.MouseButton;
56 | import javafx.scene.layout.BorderPane;
57 | import javafx.scene.layout.HBox;
58 | import javafx.scene.layout.StackPane;
59 | import javafx.scene.layout.VBox;
60 | import javafx.scene.web.WebEngine;
61 | import javafx.scene.web.WebHistory;
62 | import javafx.scene.web.WebHistory.Entry;
63 | import javafx.scene.web.WebView;
64 | import javafx.stage.StageStyle;
65 | import main.java.com.goxr3plus.javafxwebbrowser.marquee.FXMarquee;
66 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool;
67 | import net.sf.image4j.codec.ico.ICODecoder;
68 |
69 | /**
70 | * This class represents a Tab from The WebBrowser
71 | *
72 | * @author Electron Tech!
73 | *
74 | */
75 | public class WebBrowserTabController extends StackPane {
76 |
77 | /** The logger. */
78 | private final Logger logger = Logger.getLogger(getClass().getName());
79 |
80 | //------------------------------------------------------------
81 |
82 | @FXML
83 | private VBox errorPane;
84 |
85 | @FXML
86 | private JFXButton tryAgain;
87 |
88 | @FXML
89 | private ProgressIndicator tryAgainIndicator;
90 |
91 | @FXML
92 | private BorderPane borderPane;
93 |
94 | @FXML
95 | private JFXButton backwardButton;
96 |
97 | @FXML
98 | private JFXButton reloadButton;
99 |
100 | @FXML
101 | private JFXButton forwardButton;
102 |
103 | @FXML
104 | private JFXButton homeButton;
105 |
106 | @FXML
107 | private TextField searchBar;
108 |
109 | @FXML
110 | private JFXButton copyText;
111 |
112 | @FXML
113 | private JFXButton goButton;
114 |
115 | @FXML
116 | private JFXButton openInDefaultBrowser;
117 |
118 | @FXML
119 | private ToggleGroup searchEngineGroup;
120 |
121 | @FXML
122 | private CheckMenuItem movingTitleAnimation;
123 |
124 | @FXML
125 | private MenuItem printPage;
126 |
127 | @FXML
128 | private MenuItem notebookpage;
129 |
130 | @FXML
131 | private MenuItem findinpange;
132 |
133 | @FXML
134 | private MenuItem downloadPage;
135 |
136 | @FXML
137 | private CheckMenuItem cookieStorage;
138 |
139 | @FXML
140 | private WebView webView;
141 |
142 | // -------------------------------------------------------------
143 |
144 | /** The engine. */
145 | WebEngine browser;
146 |
147 | /** The web history */
148 | private WebHistory history;
149 | private ObservableList historyEntryList;
150 |
151 | private final Tab tab;
152 | private String firstWebSite;
153 |
154 | private final WebBrowserController webBrowserController;
155 |
156 | private final ImageView facIconImageView = new ImageView();
157 |
158 | /**
159 | * Constructor
160 | *
161 | * @param tab
162 | * @param firstWebSite
163 | */
164 | public WebBrowserTabController(WebBrowserController webBrowserController, Tab tab, String firstWebSite) {
165 | this.webBrowserController = webBrowserController;
166 | this.tab = tab;
167 | this.firstWebSite = firstWebSite;
168 | this.tab.setContent(this);
169 |
170 | // ------------------------------------FXMLLOADER ----------------------------------------
171 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "WebBrowserTabController.fxml"));
172 | loader.setController(this);
173 | loader.setRoot(this);
174 |
175 | try {
176 | loader.load();
177 | } catch (IOException ex) {
178 | logger.log(Level.SEVERE, "", ex);
179 | }
180 | }
181 |
182 | /**
183 | * Called as soon as .fxml is initialized [[SuppressWarningsSpartan]]
184 | */
185 | @FXML
186 | private void initialize() {
187 |
188 | //---------------ERROR PANE---
189 | //tryAgain
190 | tryAgain.setOnAction(a -> checkForInternetConnection());
191 |
192 | //-------------------WebView------------------------
193 | // hide webview scrollbars whenever they appear.
194 | // webView.getChildrenUnmodifiable().addListener((Change extends Node> change) -> {
195 | // Set deadSeaScrolls = webView.lookupAll(".scroll-bar");
196 | // for (Node scroll : deadSeaScrolls) {
197 | // scroll.setVisible(false);
198 | // scroll.setManaged(false);
199 | // }
200 | // });
201 |
202 | //-------------------WebEngine------------------------
203 | browser = webView.getEngine();
204 | browser.getLoadWorker().exceptionProperty().addListener(error -> {
205 | //System.out.println("WebEngine exception occured" + error.toString())
206 | checkForInternetConnection();
207 | });
208 | // com.sun.javafx.webkit.WebConsoleListener
209 | // .setDefaultListener((webView , message , lineNumber , sourceId) -> System.out.println("Console: [" + sourceId + ":" + lineNumber + "] " + message));
210 | //
211 | //Add listener to the WebEngine
212 | browser.getLoadWorker().stateProperty().addListener(new FavIconProvider());
213 | browser.getLoadWorker().stateProperty().addListener(new DownloadDetector());
214 | browser.getLoadWorker().stateProperty().addListener((observable , oldState , newState) -> {
215 | if (newState == Worker.State.SUCCEEDED) {
216 |
217 | //Check for error pane
218 | errorPane.setVisible(false);
219 |
220 | } else if (newState == Worker.State.FAILED) {
221 |
222 | //Check for error pane
223 | errorPane.setVisible(true);
224 | }
225 | });
226 |
227 | browser.setOnError(error -> {
228 | //System.out.println("WebEngine error occured")
229 | checkForInternetConnection();
230 | });
231 |
232 | //handle pop up windows
233 | browser.setCreatePopupHandler(l -> webBrowserController.createAndAddNewTab().getWebView().getEngine());
234 | //System.out.println(webEngine.getUserAgent())
235 | //webEngine.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0");
236 | //System.out.println(webEngine.getUserAgent());
237 |
238 | //History
239 | setHistory(browser.getHistory());
240 | historyEntryList = getHistory().getEntries();
241 | SimpleListProperty list = new SimpleListProperty<>(historyEntryList);
242 |
243 | //-------------------TAB------------------------
244 | tab.setTooltip(new Tooltip(""));
245 | tab.getTooltip().textProperty().bind(browser.titleProperty());
246 |
247 | // Graphic
248 | StackPane stack = new StackPane();
249 |
250 | // indicator
251 | ProgressBar indicator = new ProgressBar();
252 | indicator.progressProperty().bind(browser.getLoadWorker().progressProperty());
253 | indicator.visibleProperty().bind(browser.getLoadWorker().runningProperty());
254 | indicator.setMaxSize(30, 11);
255 |
256 | // label
257 | Label label = new Label();
258 | label.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
259 | label.setAlignment(Pos.CENTER);
260 | label.setStyle("-fx-background-color:#202020; -fx-font-weight:bold; -fx-text-fill: white; -fx-font-size:10;");
261 | label.textProperty().bind(Bindings.max(0, indicator.progressProperty()).multiply(100).asString("%.00f %%"));
262 | //label.textProperty().bind(Bindings.max(0, indicator.progressProperty()).multiply(100.00).asString("%.02f %%"))
263 | // text.visibleProperty().bind(library.getSmartController().inputService.runningProperty())
264 |
265 | FXMarquee marquee = new FXMarquee();
266 | marquee.textProperty().bind(tab.getTooltip().textProperty());
267 |
268 | stack.getChildren().addAll(indicator, label);
269 | stack.setManaged(false);
270 | stack.setVisible(false);
271 |
272 | // stack
273 | indicator.visibleProperty().addListener(l -> {
274 | if (indicator.isVisible()) {
275 | stack.setManaged(true);
276 | stack.setVisible(true);
277 | } else {
278 | stack.setManaged(false);
279 | stack.setVisible(false);
280 | }
281 | });
282 |
283 | //facIconImageView
284 | facIconImageView.setFitWidth(25);
285 | facIconImageView.setFitHeight(25);
286 | facIconImageView.setSmooth(true);
287 |
288 | //iconLabel
289 | Label iconLabel = new Label();
290 | iconLabel.setGraphic(facIconImageView);
291 | iconLabel.setStyle("-fx-background-color:#202020");
292 | iconLabel.visibleProperty().bind(indicator.visibleProperty().not());
293 | iconLabel.managedProperty().bind(facIconImageView.imageProperty().isNotNull().and(indicator.visibleProperty().not()));
294 |
295 | //X Button
296 | JFXButton closeButton = new JFXButton("X");
297 | int maxSize = 25;
298 | closeButton.setMinSize(maxSize, maxSize);
299 | closeButton.setPrefSize(maxSize, maxSize);
300 | closeButton.setMaxSize(maxSize, maxSize);
301 | closeButton.setStyle("-fx-background-radius:0; -fx-font-size:8px");
302 | closeButton.setOnAction(a -> this.webBrowserController.removeTab(tab));
303 |
304 | // HBOX
305 | HBox hBox = new HBox();
306 | hBox.setOnMouseClicked(m -> {
307 | if (m.getButton() == MouseButton.MIDDLE)
308 | this.webBrowserController.removeTab(tab);
309 | });
310 | hBox.getChildren().addAll(iconLabel, stack, marquee, closeButton);
311 | tab.setGraphic(hBox);
312 |
313 | //ContextMenu
314 | tab.setContextMenu(new WebBrowserTabContextMenu(this, webBrowserController));
315 |
316 | //-------------------Items------------------------
317 |
318 | //searchBar
319 | browser.getLoadWorker().runningProperty().addListener((observable , oldValue , newValue) -> {
320 | //if (list.size() > 0)
321 | // System.out.println(getHistory().getEntries().get(getHistory().getCurrentIndex()).getUrl());
322 |
323 | if (!newValue) // if !running
324 | searchBar.textProperty().unbind();
325 | else
326 | searchBar.textProperty().bind(browser.locationProperty());
327 | });
328 | searchBar.setOnAction(a -> loadWebSite(searchBar.getText()));
329 | searchBar.focusedProperty().addListener((observable , oldValue , newValue) -> {
330 | if (newValue)
331 | Platform.runLater(() -> searchBar.selectAll());
332 |
333 | });
334 |
335 | /**
336 | * new way of creating the object and pass information through it
337 | */
338 |
339 | //Proposing sites
340 | new AutoCompleteTextField().bindAutoCompletion(searchBar, 15, true, WebBrowserController.WEBSITE_PROPOSALS);
341 |
342 | //goButton
343 | goButton.setOnAction(searchBar.getOnAction());
344 |
345 | //reloadButton
346 | reloadButton.setOnAction(a -> reloadWebSite());
347 |
348 | //backwardButton
349 | backwardButton.setOnAction(a -> goBack());
350 | backwardButton.disableProperty().bind(getHistory().currentIndexProperty().isEqualTo(0));
351 | backwardButton.setOnMouseReleased(m -> {
352 | if (m.getButton() == MouseButton.MIDDLE) //Create and add it next to this tab
353 | webBrowserController.getTabPane().getTabs().add(webBrowserController.getTabPane().getTabs().indexOf(tab) + 1,
354 | webBrowserController.createNewTab(getHistory().getEntries().get(getHistory().getCurrentIndex() - 1).getUrl()).getTab());
355 | });
356 |
357 | //forwardButton
358 | forwardButton.setOnAction(a -> goForward());
359 | forwardButton.disableProperty().bind(getHistory().currentIndexProperty().greaterThanOrEqualTo(list.sizeProperty().subtract(1)));
360 | forwardButton.setOnMouseReleased(m -> {
361 | if (m.getButton() == MouseButton.MIDDLE) //Create and add it next to this tab
362 | webBrowserController.getTabPane().getTabs().add(webBrowserController.getTabPane().getTabs().indexOf(tab) + 1,
363 | webBrowserController.createNewTab(getHistory().getEntries().get(getHistory().getCurrentIndex() + 1).getUrl()).getTab());
364 | });
365 |
366 | //movingTitleAnimation
367 | movingTitleAnimation.selectedProperty().addListener((observable , oldValue , newValue) -> {
368 | marquee.checkAnimationValidity(newValue);
369 | });
370 | movingTitleAnimation.setSelected(WebBrowserController.MOVING_TITLES_ENABLED);
371 |
372 | //Load the website
373 | loadWebSite(firstWebSite);
374 |
375 | /**
376 | * NEW - IMPLEMENTSSTION GOES HERE
377 | */
378 |
379 | /*
380 | * printing web page implementation
381 | */
382 | printPage.setOnAction((e) -> {
383 | PrinterJob job = PrinterJob.createPrinterJob();
384 | if (job != null) {
385 | browser.print(job);
386 | job.endJob();
387 | }
388 | });
389 |
390 | /*
391 | * cookie storage managment
392 | */
393 | cookieStorage.selectedProperty().addListener((observable , oldvalue , newvalue) -> {
394 | if (newvalue) {
395 | CookieManager manager = new CookieManager();
396 | manager.setCookiePolicy(CookiePolicy.ACCEPT_ORIGINAL_SERVER);
397 | CookieHandler.setDefault(manager);
398 |
399 | //it can save cookie on disk upon exit of application for next startup you can retrieve
400 | CookieStore store = manager.getCookieStore();
401 | try {
402 | URI uriadd = new URI(getHistory().getEntries().get(getHistory().getCurrentIndex()).getUrl());
403 | store.add(uriadd, new HttpCookie("name", "value"));
404 |
405 | /*
406 | * System.out.println("host"+uriadd.getHost()); System.out.println("spliting"+uriadd.toString().split("/"));
407 | * System.out.println("path"+uriadd.getPath()); System.out.println(""+uriadd.getRawPath());
408 | * System.out.println(""+uriadd.getRawPath().replace('/','.')); String new_ur
409 | * =uriadd.getHost()+uriadd.getRawPath().replaceAll("/",".")+"html"; System.out.println(new_ur);
410 | */
411 | } catch (URISyntaxException e1) {
412 |
413 | e1.printStackTrace();
414 | }
415 |
416 | //get cookie implementation
417 | try {
418 |
419 | URI getcookie = new URI(getHistory().getEntries().get(getHistory().getCurrentIndex()).getUrl());
420 | store.get(getcookie);
421 | } catch (URISyntaxException e1) {
422 |
423 | e1.printStackTrace();
424 | }
425 |
426 | } else {
427 | CookieManager manager = new CookieManager();
428 | manager.setCookiePolicy(CookiePolicy.ACCEPT_NONE);
429 | Alert alert = new Alert(AlertType.INFORMATION);
430 | alert.initStyle(StageStyle.UTILITY);
431 | alert.setTitle("COOKIES STATUS");
432 | alert.setHeaderText(null);
433 | alert.setContentText("Browser DISABLED COOKIES NO TRACKING");
434 |
435 | alert.showAndWait();
436 | }
437 | });
438 |
439 | /*
440 | * Download web page implementation
441 | */
442 |
443 | downloadPage.setOnAction( ( printpage -> {
444 | try {
445 | URI u = new URI(getHistory().getEntries().get(getHistory().getCurrentIndex()).getUrl());
446 | //Authenticator.setDefault(new DialogAuthenticator());
447 |
448 | String new_ur = u.getHost() + u.getRawPath().replaceAll("/", ".") + "html";
449 | FileOutputStream fos = new FileOutputStream("D:\\" + new_ur + ".html", true);
450 |
451 | InputStream in = u.toURL().openStream();
452 | int c;
453 | while ( ( c = in.read() ) != -1) {
454 | fos.write(c);
455 |
456 | }
457 |
458 | in.close();
459 | fos.close();
460 | } catch (IOException | URISyntaxException e) {
461 | System.out.println("exception occured" + e.getMessage());
462 | }
463 | } ));
464 |
465 | }
466 |
467 | /**
468 | * Returns back the main domain of the given url for example https://duckduckgo.com/?q=/favicon.ico returns
469 | * https://duckduckgo.com
470 | *
471 | * @param urlInput
472 | * @return
473 | */
474 | private String getHostName(String urlInput) {
475 | try {
476 | URL url = new URL(urlInput);
477 | return url.getProtocol() + "://" + url.getHost() + "/";
478 | } catch (Exception e) {
479 | e.printStackTrace();
480 | return "";
481 | }
482 | }
483 |
484 | /**
485 | * Return the Search Url for the Search Provider For example for `Google` returns `https://www.google.com/search?q=`
486 | *
487 | * @param searchProvider
488 | * @return The Search Engine Url
489 | */
490 | public String getSearchEngineHomeUrl(String searchProvider) {
491 | //Find
492 | switch (searchProvider.toLowerCase()) {
493 | case "bing":
494 | return "http://www.bing.com";
495 | case "duckduckgo":
496 | return "https://duckduckgo.com";
497 | case "yahoo":
498 | return "https://search.yahoo.com";
499 | default: //then google
500 | return "https://www.google.com";
501 | }
502 | }
503 |
504 | /**
505 | * Get the default url home page for the selected search provider
506 | *
507 | * @return Get the default url home page for the selected search provider
508 | */
509 | public String getSelectedEngineHomeUrl() {
510 | return getSearchEngineHomeUrl( ( (RadioMenuItem) searchEngineGroup.getSelectedToggle() ).getText());
511 | }
512 |
513 | /**
514 | * Loads the given website , either directly if the url is a valid WebSite Url or using a SearchEngine like Google
515 | *
516 | * @param webSite
517 | */
518 | private void loadWebSite(String webSite) {
519 |
520 | //Search if it is a valid WebSite url
521 | String load = !new UrlValidator().isValid(webSite) ? null : webSite;
522 |
523 | //Load
524 | try {
525 |
526 | //First Part
527 | String finalWebsiteFristPart = ( load != null ) ? load : getSelectedEngineHomeUrl();
528 |
529 | //Second Part
530 | String finalWebsiteSecondPart = "";
531 | if (searchBar.getText().isEmpty())
532 | finalWebsiteSecondPart = "";
533 | else {
534 | switch ( ( (RadioMenuItem) searchEngineGroup.getSelectedToggle() ).getText()) {
535 | case "bing":
536 | case "duckduckgo":
537 | finalWebsiteSecondPart = "//?q=" + URLEncoder.encode(searchBar.getText(), "UTF-8");
538 | break;
539 | case "yahoo": //I need to find a solution for this
540 | finalWebsiteSecondPart = "//?q=" + URLEncoder.encode(searchBar.getText(), "UTF-8");
541 | break;
542 | default: //then google
543 | finalWebsiteSecondPart = "//search?q=" + URLEncoder.encode(searchBar.getText(), "UTF-8");
544 | break;
545 | }
546 |
547 | }
548 |
549 | //Load it
550 | browser.load(finalWebsiteFristPart + finalWebsiteSecondPart);
551 | } catch (UnsupportedEncodingException ex) {
552 | ex.printStackTrace();
553 | }
554 |
555 | }
556 |
557 | /**
558 | * Loads the default website
559 | */
560 | public void loadDefaultWebSite() {
561 | browser.load(getSelectedEngineHomeUrl());
562 | }
563 |
564 | /**
565 | * Loads the current website , or if none then loads the default website
566 | */
567 | public void reloadWebSite() {
568 | if (!getHistory().getEntries().isEmpty())
569 | browser.reload();
570 | else
571 | loadDefaultWebSite();
572 | }
573 |
574 | /**
575 | * Goes Backward one Page
576 | *
577 | */
578 | public void goBack() {
579 | getHistory().go(historyEntryList.size() > 1 && getHistory().getCurrentIndex() > 0 ? -1 : 0);
580 | //System.out.println(history.getCurrentIndex() + "," + historyEntryList.size())
581 | }
582 |
583 | /**
584 | * Goes Forward one Page
585 | *
586 | */
587 | public void goForward() {
588 | getHistory().go(historyEntryList.size() > 1 && getHistory().getCurrentIndex() < historyEntryList.size() - 1 ? 1 : 0);
589 | //System.out.println(history.getCurrentIndex() + "," + historyEntryList.size())
590 | }
591 |
592 | /**
593 | * @return the webView
594 | */
595 | public WebView getWebView() {
596 | return webView;
597 | }
598 |
599 | /**
600 | * @return the tab
601 | */
602 | public Tab getTab() {
603 | return tab;
604 | }
605 |
606 | /**
607 | * @return the errorPane
608 | */
609 | public VBox getErrorPane() {
610 | return errorPane;
611 | }
612 |
613 | /**
614 | * Checks for internet connection
615 | */
616 | void checkForInternetConnection() {
617 |
618 | //tryAgainIndicator
619 | tryAgainIndicator.setVisible(true);
620 |
621 | //Check for Internet connection
622 | Thread thread = new Thread(() -> {
623 | boolean hasInternet = InfoTool.isReachableByPing("www.google.com");
624 | Platform.runLater(() -> {
625 |
626 | //Visibility of error pane
627 | errorPane.setVisible(!hasInternet);
628 |
629 | //Visibility of Try Again Indicator
630 | tryAgainIndicator.setVisible(false);
631 |
632 | //Reload the Website if it has Internet
633 | if (hasInternet)
634 | reloadWebSite();
635 | });
636 | }, "Internet Connection Tester Thread");
637 | thread.setDaemon(true);
638 | thread.start();
639 | }
640 |
641 | /**
642 | * @return the history
643 | */
644 | public WebHistory getHistory() {
645 | return history;
646 | }
647 |
648 | /**
649 | * @param history
650 | * the history to set
651 | */
652 | public void setHistory(WebHistory history) {
653 | this.history = history;
654 | }
655 |
656 | /**
657 | * Determines if the tab title will have a moving animation or not
658 | *
659 | * @param value
660 | */
661 | public void setMovingTitleEnabled(boolean value) {
662 | movingTitleAnimation.setSelected(value);
663 | }
664 |
665 | ///////////////////////////// INNER CLASSES ////////////////////////////////
666 | public class FavIconProvider implements ChangeListener {
667 |
668 | @Override
669 | public void changed(ObservableValue extends State> observable , State oldState , State newState) {
670 | if (newState == Worker.State.SUCCEEDED) {
671 | try {
672 | if ("about:blank".equals(browser.getLocation()))
673 | return;
674 |
675 | //Determine the full url
676 | String favIconFullURL = getHostName(browser.getLocation()) + "favicon.ico";
677 | //System.out.println(favIconFullURL)
678 |
679 | //Create HttpURLConnection
680 | HttpURLConnection httpcon = (HttpURLConnection) new URL(favIconFullURL).openConnection();
681 | httpcon.addRequestProperty("User-Agent", "Mozilla/5.0");
682 | List image = ICODecoder.read(httpcon.getInputStream());
683 |
684 | //Set the favicon
685 | facIconImageView.setImage(SwingFXUtils.toFXImage(image.get(0), null));
686 |
687 | } catch (Exception ex) {
688 | //ex.printStackTrace()
689 | facIconImageView.setImage(null);
690 | }
691 | }
692 | }
693 | }// FavIconProvider
694 |
695 | public class DownloadDetector implements ChangeListener {
696 |
697 | @Override
698 | public void changed(ObservableValue extends State> observable , State oldState , State newState) {
699 | if (newState == Worker.State.CANCELLED) {
700 | // download detected
701 | String url = browser.getLocation();
702 | logger.info("download url: " + url);
703 | // try{
704 | // Download download = new Download(webEngine.getLocation());
705 | // Thread t = new Thread(download);
706 | // t.start();
707 | // }catch(Exception ex){
708 | // logger.log(Level.SEVERE, "download", ex);
709 | // }
710 | }
711 | }
712 | }// DownloadDetector
713 |
714 | }
715 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/src/main/java/com/goxr3plus/javafxwebbrowser/browser/WebBrowserController.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO LISENSE
3 | */
4 | package main.java.com.goxr3plus.javafxwebbrowser.browser;
5 |
6 | import java.io.IOException;
7 | import java.util.Arrays;
8 | import java.util.SortedSet;
9 | import java.util.TreeSet;
10 | import java.util.logging.Level;
11 | import java.util.logging.Logger;
12 | import java.util.stream.Collectors;
13 |
14 | import com.jfoenix.controls.JFXButton;
15 | import com.jfoenix.controls.JFXTabPane;
16 |
17 | import javafx.fxml.FXML;
18 | import javafx.fxml.FXMLLoader;
19 | import javafx.scene.control.Tab;
20 | import javafx.scene.control.TabPane;
21 | import javafx.scene.layout.StackPane;
22 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool;
23 |
24 | /**
25 | * @author Electron Tech! , GOXR3PLUS STUDIO
26 | *
27 | */
28 | public class WebBrowserController extends StackPane {
29 |
30 | /** The logger. */
31 | private final Logger logger = Logger.getLogger(getClass().getName());
32 |
33 | public static boolean MOVING_TITLES_ENABLED = true;
34 |
35 | //------------------------------------------------------------
36 |
37 | @FXML
38 | private JFXTabPane tabPane;
39 |
40 | @FXML
41 | private JFXButton youtube;
42 |
43 | @FXML
44 | private JFXButton soundCloud;
45 |
46 | @FXML
47 | private JFXButton facebook;
48 |
49 | @FXML
50 | private JFXButton printerest;
51 |
52 | @FXML
53 | private JFXButton twitter;
54 |
55 | @FXML
56 | private JFXButton linkedIn;
57 |
58 | @FXML
59 | private JFXButton dropBox;
60 |
61 | @FXML
62 | private JFXButton gmail;
63 |
64 | @FXML
65 | private JFXButton googleDrive;
66 |
67 | @FXML
68 | private JFXButton googleMaps;
69 |
70 | @FXML
71 | private JFXButton addTab;
72 |
73 |
74 | // -------------------------------------------------------------
75 |
76 | /**
77 | * Constructor
78 | */
79 | public WebBrowserController() {
80 |
81 | // ------------------------------------FXMLLOADER ----------------------------------------
82 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "WebBrowserController.fxml"));
83 | loader.setController(this);
84 | loader.setRoot(this);
85 |
86 | try {
87 | loader.load();
88 | } catch (IOException ex) {
89 | logger.log(Level.SEVERE, "", ex);
90 | }
91 | }
92 |
93 | /**
94 | * Called as soon as .fxml is initialized [[SuppressWarningsSpartan]]
95 | */
96 | @FXML
97 | private void initialize() {
98 |
99 | //tabPane
100 | tabPane.getTabs().clear();
101 | createAndAddNewTab();
102 |
103 | //addTab
104 | addTab.setOnAction(a -> createAndAddNewTab());
105 |
106 | //Extra Stuff
107 | youtube.setOnAction(a -> createTabAndSelect("https://www.youtube.com/"));
108 |
109 | soundCloud.setOnAction(a -> createTabAndSelect("https://www.soundcloud.com"));
110 |
111 | facebook.setOnAction(a -> createTabAndSelect("https://www.facebook.com"));
112 |
113 | printerest.setOnAction(a -> createTabAndSelect("https://www.pinterest.com"));
114 |
115 | twitter.setOnAction(a -> createTabAndSelect("https://www.twitter.com"));
116 |
117 | linkedIn.setOnAction(a -> createTabAndSelect("https://www.linkedin.com/"));
118 |
119 | dropBox.setOnAction(a -> createTabAndSelect("https://www.dropbox.com"));
120 |
121 | gmail.setOnAction(a -> createTabAndSelect("https://www.gmail.com"));
122 |
123 | googleDrive.setOnAction(a -> createTabAndSelect("https://www.google.com"));
124 |
125 | googleMaps.setOnAction(a -> createTabAndSelect("https://maps.google.com/"));
126 |
127 | }
128 |
129 | /**
130 | * Creates a new Tab and selects it
131 | *
132 | * @param url
133 | */
134 | public void createTabAndSelect(String url) {
135 | tabPane.getSelectionModel().select(createAndAddNewTab(url).getTab());
136 | }
137 |
138 | /**
139 | * Creates a new tab for the web browser ->Directing to a specific web site [[SuppressWarningsSpartan]]
140 | *
141 | * @param webSite
142 | */
143 | public WebBrowserTabController createAndAddNewTab(String... webSite) {
144 |
145 | //Create
146 | WebBrowserTabController webBrowserTab = createNewTab(webSite);
147 |
148 | //Add the tab
149 | tabPane.getTabs().add(webBrowserTab.getTab());
150 |
151 | return webBrowserTab;
152 | }
153 |
154 | /**
155 | * Creates a new tab for the web browser ->Directing to a specific web site [[SuppressWarningsSpartan]]
156 | *
157 | * @param webSite
158 | */
159 | public WebBrowserTabController createNewTab(String... webSite) {
160 |
161 | //Create
162 | Tab tab = new Tab("");
163 | WebBrowserTabController webBrowserTab = new WebBrowserTabController(this, tab, webSite.length == 0 ? null : webSite[0]);
164 | tab.setOnClosed(c -> {
165 |
166 | //Check the tabs number
167 | if (tabPane.getTabs().isEmpty())
168 | createAndAddNewTab();
169 |
170 | // Delete cache for navigate back
171 | webBrowserTab.browser.load("about:blank");
172 |
173 | //Delete cookies Experimental!!!
174 | //java.net.CookieHandler.setDefault(new java.net.CookieManager())
175 |
176 | });
177 |
178 | return webBrowserTab;
179 | }
180 |
181 | /**
182 | * Closes the tabs to the right of the given Tab
183 | *
184 | * @param tab
185 | */
186 | public void closeTabsToTheRight(Tab givenTab) {
187 | //Return if size <= 1
188 | if (tabPane.getTabs().size() <= 1)
189 | return;
190 |
191 | //The start
192 | int start = tabPane.getTabs().indexOf(givenTab);
193 |
194 | //Remove the appropriate items
195 | tabPane.getTabs().stream()
196 | //filter
197 | .filter(tab -> tabPane.getTabs().indexOf(tab) > start)
198 | //Collect the all to a list
199 | .collect(Collectors.toList()).forEach(this::removeTab);
200 |
201 | }
202 |
203 | /**
204 | * Closes the tabs to the left of the given Tab
205 | *
206 | * @param tab
207 | */
208 | public void closeTabsToTheLeft(Tab givenTab) {
209 | //Return if size <= 1
210 | if (tabPane.getTabs().size() <= 1)
211 | return;
212 |
213 | //The start
214 | int start = tabPane.getTabs().indexOf(givenTab);
215 |
216 | //Remove the appropriate items
217 | tabPane.getTabs().stream()
218 | //filter
219 | .filter(tab -> tabPane.getTabs().indexOf(tab) < start)
220 | //Collect the all to a list
221 | .collect(Collectors.toList()).forEach(this::removeTab);
222 |
223 | }
224 |
225 | /**
226 | * Removes this Tab from the TabPane
227 | *
228 | * @param tab
229 | */
230 | public void removeTab(Tab tab) {
231 | tabPane.getTabs().remove(tab);
232 | tab.getOnClosed().handle(null);
233 | }
234 |
235 | /**
236 | * @return the tabPane
237 | */
238 | public TabPane getTabPane() {
239 | return tabPane;
240 | }
241 |
242 | /**
243 | * Sets the moving titles enabled or disabled on all the tabs
244 | *
245 | * @param value
246 | */
247 | public void setMovingTitlesEnabled(boolean value) {
248 | MOVING_TITLES_ENABLED = value;
249 | tabPane.getTabs().forEach(tab -> ( (WebBrowserTabController) tab.getContent() ).setMovingTitleEnabled(value));
250 | }
251 |
252 | /**
253 | * This is a list holding all the proposed websites for the user
254 | */
255 |
256 | public static final SortedSet WEBSITE_PROPOSALS = new TreeSet<>(Arrays.asList("https://www.104.com.tw", "https://www.11st.co.kr", "https://www.123-reg.co.uk",
257 | "https://www.1337x.to", "https://www.163.com", "https://www.1688.com", "https://www.17ok.com", "https://www.1and1.com", "https://www.1and1.fr", "https://www.1und1.de",
258 | "https://www.2ch.net", "https://www.360.cn", "https://www.39.net", "https://www.4.cn", "https://www.4chan.org", "https://www.4dsply.com", "https://www.4pda.ru",
259 | "https://www.4shared.com", "https://www.51.la", "https://www.51sole.com", "https://www.52pk.com", "https://www.58.com", "https://www.9gag.com", "https://www.a8.net",
260 | "https://www.abc.net.au", "https://www.about.com", "https://www.about.me", "https://www.aboutcookies.org", "https://www.abs-cbn.com",
261 | "https://www.absoluteclickscom.com", "https://www.academia.edu", "https://www.accuweather.com", "https://www.acquirethisname.com", "https://www.addthis.com",
262 | "https://www.addtoany.com", "https://www.adexchangeprediction.com", "https://www.adf.ly", "https://www.admarketplace.net", "https://www.admin.ch",
263 | "https://www.adnetworkperformance.com", "https://www.adobe.com", "https://www.adp.com", "https://www.adweek.com", "https://www.afternic.com", "https://www.agoda.com",
264 | "https://www.airbnb.com", "https://www.airtel.in", "https://www.albawabhnews.com", "https://www.alexa.com", "https://www.alibaba.com", "https://www.alicdn.com",
265 | "https://www.aliexpress.com", "https://www.alipay.com", "https://www.aliyun.com", "https://www.aljazeera.com", "https://www.aljazeera.net",
266 | "https://www.allaboutcookies.org", "https://www.allegro.pl", "https://www.allocine.fr", "https://www.allrecipes.com", "https://www.almasryalyoum.com",
267 | "https://www.alodokter.com", "https://www.alsbbora.com", "https://www.amazon.ca", "https://www.amazon.cn", "https://www.amazon.co.jp", "https://www.amazon.co.uk",
268 | "https://www.amazon.com", "https://www.amazon.de", "https://www.amazon.es", "https://www.amazon.fr", "https://www.amazon.in", "https://www.amazon.it",
269 | "https://www.amazonaws.com", "https://www.ameblo.jp", "https://www.americanexpress.com", "https://www.ampxchange.com", "https://www.amzn.to",
270 | "https://www.andhrajyothy.com", "https://www.android.com", "https://www.animeflv.net", "https://www.antaranews.com", "https://www.aol.com", "https://www.ap.org",
271 | "https://www.apa.org", "https://www.apache.org", "https://www.aparat.com", "https://www.apple-kungfu.com", "https://www.apple.com", "https://www.appledaily.com.tw",
272 | "https://www.appspot.com", "https://www.archive.org", "https://www.archives.gov", "https://www.army.mil", "https://www.arstechnica.com", "https://www.as.com",
273 | "https://www.asahi.com", "https://www.asana.com", "https://www.ascii.co.uk", "https://www.ask.com", "https://www.ask.fm", "https://www.askcom.me",
274 | "https://www.askubuntu.com", "https://www.asos.com", "https://www.asus.com", "https://www.atlassian.net", "https://www.att.com", "https://www.autodesk.com",
275 | "https://www.avg.com", "https://www.avito.ru", "https://www.axs.com", "https://www.azlyrics.com", "https://www.azxsd.pro", "https://www.babytree.com",
276 | "https://www.badoo.com", "https://www.baidu.com", "https://www.baike.com", "https://www.bandcamp.com", "https://www.banggood.com", "https://www.bankmellat.ir",
277 | "https://www.bankofamerica.com", "https://www.banvenez.com", "https://www.barnesandnoble.com", "https://www.battle.net", "https://www.bbb.org", "https://www.bbc.co.uk",
278 | "https://www.bbc.com", "https://www.beeg.com", "https://www.behance.net", "https://www.beian.gov.cn", "https://www.berkeley.edu", "https://www.bestbuy.com",
279 | "https://www.bestfwdservice.com", "https://www.bet365.com", "https://www.bet9ja.com", "https://www.beytoote.com", "https://www.bhaskar.com",
280 | "https://www.bhphotovideo.com", "https://www.bigcartel.com", "https://www.bild.de", "https://www.bilibili.com", "https://www.billdesk.com", "https://www.bing.com",
281 | "https://www.bintang.com", "https://www.biobiochile.cl", "https://www.birdieulx.com", "https://www.bit.ly", "https://www.bitauto.com", "https://www.bitbucket.org",
282 | "https://www.bitly.com", "https://www.bizjournals.com", "https://www.blackboard.com", "https://www.blastingnews.com", "https://www.bleacherreport.com",
283 | "https://www.blog.jp", "https://www.blog.me", "https://www.blogfa.com", "https://www.blogger.com", "https://www.blogspot.ca", "https://www.blogspot.co.uk",
284 | "https://www.blogspot.com", "https://www.blogspot.com.br", "https://www.blogspot.com.es", "https://www.blogspot.de", "https://www.blogspot.fr",
285 | "https://www.blogspot.in", "https://www.blogspot.jp", "https://www.blogspot.mx", "https://www.bloomberg.com", "https://www.blpmovies.com", "https://www.bls.gov",
286 | "https://www.bluehost.com", "https://www.bmj.com", "https://www.bodybuilding.com", "https://www.bola.net", "https://www.bomb01.com", "https://www.bongacams.com",
287 | "https://www.booking.com", "https://www.bookmyshow.com", "https://www.boredpanda.com", "https://www.boston.com", "https://www.bostonglobe.com", "https://www.box.com",
288 | "https://www.bp.blogspot.com", "https://www.brazzers.com", "https://www.breitbart.com", "https://www.brilio.net", "https://www.bukalapak.com", "https://www.bund.de",
289 | "https://www.businessinsider.com", "https://www.businessweek.com", "https://www.businesswire.com", "https://www.buydomains.com", "https://www.buyma.com",
290 | "https://www.buzzfeed.com", "https://www.ca.gov", "https://www.cafepress.com", "https://www.caijing.com.cn", "https://www.caixa.gov.br", "https://www.caliente.mx",
291 | "https://www.cam.ac.uk", "https://www.cam4.com", "https://www.cambridge.org", "https://www.camdolls.com", "https://www.campaign-archive1.com",
292 | "https://www.campaign-archive2.com", "https://www.canva.com", "https://www.capitalone.com", "https://www.cbc.ca", "https://www.cbslocal.com", "https://www.cbsnews.com",
293 | "https://www.ccm.net", "https://www.cdc.gov", "https://www.cdiscount.com", "https://www.census.gov", "https://www.cerpen.co.id", "https://www.change.org",
294 | "https://www.chaoshi.tmall.com", "https://www.chase.com", "https://www.chaturbate.com", "https://www.chatwork.com", "https://www.chicagotribune.com",
295 | "https://www.china.com", "https://www.china.com.cn", "https://www.chinadaily.com.cn", "https://www.chinaso.com", "https://www.chinaz.com", "https://www.chip.de",
296 | "https://www.chouftv.ma", "https://www.chron.com", "https://www.ci123.com", "https://www.cisco.com", "https://www.citi.com", "https://www.ck101.com",
297 | "https://www.clickbank.net", "https://www.clicksgear.com", "https://www.clipconverter.cc", "https://www.cloudfront.net", "https://www.cmu.edu", "https://www.cnbc.com",
298 | "https://www.cnblogs.com", "https://www.cnet.com", "https://www.cnn.com", "https://www.cnzz.com", "https://www.coccoc.com", "https://www.codeonclick.com",
299 | "https://www.codepen.io", "https://www.coinbase.com", "https://www.coinmarketcap.com", "https://www.columbia.edu", "https://www.com.com", "https://www.comcast.net",
300 | "https://www.comicbook.com", "https://www.commentcamarche.net", "https://www.conservativetribune.com", "https://www.constantcontact.com", "https://www.content1req.com",
301 | "https://www.convert2mp3.net", "https://www.cornell.edu", "https://www.corriere.it", "https://www.coursera.org", "https://www.cpanel.com", "https://www.cpanel.net",
302 | "https://www.cpm10.com", "https://www.cpmofferconvert.com", "https://www.cqnews.net", "https://www.craigslist.org", "https://www.creativecommons.org",
303 | "https://www.cricbuzz.com", "https://www.crunchyroll.com", "https://www.csdn.net", "https://www.ctitv.com.tw", "https://www.dafont.com",
304 | "https://www.daikynguyenvn.com", "https://www.dailymail.co.uk", "https://www.dailymotion.com", "https://www.dailypakistan.com.pk", "https://www.dandomain.dk",
305 | "https://www.daum.net", "https://www.dcard.tw", "https://www.debian.org", "https://www.delicious.com", "https://www.dell.com", "https://www.delta.com",
306 | "https://www.detail.tmall.com", "https://www.detik.com", "https://www.deviantart.com", "https://www.deviantart.net", "https://www.dict.cc",
307 | "https://www.dictionary.com", "https://www.digg.com", "https://www.digikala.com", "https://www.dingit.tv", "https://www.diply.com", "https://www.directdomains.com",
308 | "https://www.directrev.com", "https://www.discogs.com", "https://www.discordapp.com", "https://www.discover.com", "https://www.discovery.com",
309 | "https://www.discuss.com.hk", "https://www.disq.us", "https://www.disqus.com", "https://www.divar.ir", "https://www.dmm.co.jp", "https://www.dmv.org",
310 | "https://www.doi.org", "https://www.domainactive.co", "https://www.domainmarket.com", "https://www.domainname.de", "https://www.domainnameshop.com",
311 | "https://www.domeneshop.no", "https://www.donga.com", "https://www.dot.gov", "https://www.douban.com", "https://www.doubleclick.net", "https://www.doublepimp.com",
312 | "https://www.doublepimpssl.com", "https://www.douyu.com", "https://www.dream.co.id", "https://www.dreamhost.com", "https://www.dribbble.com", "https://www.drive2.ru",
313 | "https://www.drom.ru", "https://www.dropbox.com", "https://www.dropboxusercontent.com", "https://www.drtuber.com", "https://www.drudgereport.com",
314 | "https://www.drupal.org", "https://www.duckduckgo.com", "https://www.duke.edu", "https://www.duolingo.com", "https://www.e-recht24.de", "https://www.ea.com",
315 | "https://www.eastday.com", "https://www.ebay-kleinanzeigen.de", "https://www.ebay.co.uk", "https://www.ebay.com", "https://www.ebay.com.au", "https://www.ebay.de",
316 | "https://www.ebay.fr", "https://www.ebay.in", "https://www.ebay.it", "https://www.economist.com", "https://www.ecosia.org", "https://www.ed.gov",
317 | "https://www.eepurl.com", "https://www.eksisozluk.com", "https://www.el-nacional.com", "https://www.elbalad.news", "https://www.elegantthemes.com",
318 | "https://www.elfagr.org", "https://www.elmundo.es", "https://www.elpais.com", "https://www.elvenar.com", "https://www.emol.com", "https://www.enable-javascript.com",
319 | "https://www.engadget.com", "https://www.ensonhaber.com", "https://www.entrepreneur.com", "https://www.epa.gov", "https://www.eskimi.com", "https://www.espn.com",
320 | "https://www.espncricinfo.com", "https://www.etsy.com", "https://www.ettoday.net", "https://www.europa.eu", "https://www.eventbrite.co.uk",
321 | "https://www.eventbrite.com", "https://www.evernote.com", "https://www.ewebdevelopment.com", "https://www.examiner.com", "https://www.example.com",
322 | "https://www.exblog.jp", "https://www.exoclick.com", "https://www.expedia.com", "https://www.express.co.uk", "https://www.eyny.com", "https://www.facebook.com",
323 | "https://www.faithtap.com", "https://www.familydoctor.com.cn", "https://www.fanfiction.net", "https://www.fanpage.gr", "https://www.fao.org",
324 | "https://www.farsnews.com", "https://www.fastcompany.com", "https://www.fatosdesconhecidos.com.br", "https://www.fb.com", "https://www.fb.me", "https://www.fbcdn.net",
325 | "https://www.fbsbx.com", "https://www.fc2.com", "https://www.fda.gov", "https://www.fedex.com", "https://www.feedburner.com", "https://www.feedly.com",
326 | "https://www.fidelity.com", "https://www.filehippo.com", "https://www.files.wordpress.com", "https://www.fiverr.com", "https://www.flickr.com",
327 | "https://www.flipkart.com", "https://www.flirt4free.com", "https://www.fmovies.se", "https://www.focus.de", "https://www.food.tmall.com", "https://www.forbes.com",
328 | "https://www.force.com", "https://www.fortune.com", "https://www.foursquare.com", "https://www.foxnews.com", "https://www.free.fr", "https://www.freejobalert.com",
329 | "https://www.freepik.com", "https://www.friv.com", "https://www.fromdoctopdf.com", "https://www.frstlead.com", "https://www.ft.com", "https://www.ftc.gov",
330 | "https://www.g2a.com", "https://www.gamefaqs.com", "https://www.gamepedia.com", "https://www.gamer.com.tw", "https://www.gamespot.com",
331 | "https://www.gamingwonderland.com", "https://www.gazeta.pl", "https://www.gazetaexpress.com", "https://www.gazzetta.it", "https://www.gearbest.com",
332 | "https://www.genius.com", "https://www.geocities.com", "https://www.geocities.jp", "https://www.getpocket.com", "https://www.gfycat.com", "https://www.giphy.com",
333 | "https://www.gismeteo.ru", "https://www.github.com", "https://www.github.io", "https://www.givemesport.com", "https://www.gizmodo.com", "https://www.glassdoor.com",
334 | "https://www.globo.com", "https://www.gmarket.co.kr", "https://www.gmw.cn", "https://www.gmx.net", "https://www.gnu.org", "https://www.go.com", "https://www.goal.com",
335 | "https://www.godaddy.com", "https://www.gofundme.com", "https://www.gogoanime.io", "https://www.gomovies.to", "https://www.gongchang.com", "https://www.goo.gl",
336 | "https://www.goo.ne.jp", "https://www.goodreads.com", "https://www.googleusercontent.com", "https://www.googlevideo.com", "https://www.gotporn.com",
337 | "https://www.gov.uk", "https://www.gpo.gov", "https://www.grammarly.com", "https://www.gravatar.com", "https://www.grid.id", "https://www.groupon.com",
338 | "https://www.gsmarena.com", "https://www.guardian.co.uk", "https://www.gutefrage.net", "https://www.gyazo.com", "https://www.haber7.com", "https://www.hamariweb.com",
339 | "https://www.hao123.com", "https://www.harvard.edu", "https://www.hatena.ne.jp", "https://www.hatenablog.com", "https://www.hbr.org", "https://www.hclips.com",
340 | "https://www.hdfcbank.com", "https://www.hdzog.com", "https://www.hespress.com", "https://www.hhs.gov", "https://www.hibu.com", "https://www.hilltopads.net",
341 | "https://www.hilton.com", "https://www.histats.com", "https://www.hm.com", "https://www.hola.com", "https://www.hollywoodreporter.com", "https://www.home.pl",
342 | "https://www.homedepot.com", "https://www.homestead.com", "https://www.hootsuite.com", "https://www.hostgator.com", "https://www.hostnet.nl", "https://www.hotels.com",
343 | "https://www.hotmovs.com", "https://www.hotstar.com", "https://www.house.gov", "https://www.houzz.com", "https://www.howtogeek.com", "https://www.hp.com",
344 | "https://www.href.li", "https://www.huaban.com", "https://www.huanqiu.com", "https://www.hubspot.com", "https://www.huffingtonpost.com", "https://www.hulu.com",
345 | "https://www.humblebundle.com", "https://www.hurriyet.com.tr", "https://www.ibm.com", "https://www.ibtimes.com", "https://www.icann.org", "https://www.icicibank.com",
346 | "https://www.icio.us", "https://www.icloud.com", "https://www.idnes.cz", "https://www.ieee.org", "https://www.ign.com", "https://www.ikea.com", "https://www.imdb.com",
347 | "https://www.imgur.com", "https://www.imwhite.ru", "https://www.inc.com", "https://www.indeed.com", "https://www.independent.co.uk", "https://www.indianexpress.com",
348 | "https://www.indiatimes.com", "https://www.indiegogo.com", "https://www.infusionsoft.com", "https://www.inquirer.net", "https://www.instagram.com",
349 | "https://www.instructables.com", "https://www.instructure.com", "https://www.intel.com", "https://www.interia.pl", "https://www.internetdownloadmanager.com",
350 | "https://www.intoday.in", "https://www.intuit.com", "https://www.inven.co.kr", "https://www.investing.com", "https://www.investopedia.com", "https://www.ipetgroup.com",
351 | "https://www.iqiyi.com", "https://www.iqoption.com", "https://www.irctc.co.in", "https://www.irs.gov", "https://www.issuu.com", "https://www.istockphoto.com",
352 | "https://www.itmedia.co.jp", "https://www.iwanttodeliver.com", "https://www.jabong.com", "https://www.japanpost.jp", "https://www.java.com", "https://www.jd.com",
353 | "https://www.jeuxvideo.com", "https://www.jianshu.com", "https://www.jiathis.com", "https://www.jimdo.com", "https://www.joomla.org", "https://www.jrj.com.cn",
354 | "https://www.jugem.jp", "https://www.junbi-tracker.com", "https://www.justdial.com", "https://www.jw.org", "https://www.k618.cn", "https://www.kakaku.com",
355 | "https://www.kapanlagi.com", "https://www.kaskus.co.id", "https://www.kayak.com", "https://www.khanacademy.org", "https://www.kickstarter.com", "https://www.kijiji.ca",
356 | "https://www.kinogo.club", "https://www.kinokrad.co", "https://www.kinopoisk.ru", "https://www.kinoprofi.org", "https://www.kissanime.ru", "https://www.kissasian.com",
357 | "https://www.kizlarsoruyor.com", "https://www.kompas.com", "https://www.kooora.com", "https://www.kotaku.com", "https://www.labanquepostale.fr",
358 | "https://www.ladbible.com", "https://www.lapatilla.com", "https://www.latimes.com", "https://www.launchpage.org", "https://www.lazada.co.id",
359 | "https://www.lazada.co.th", "https://www.lazada.com.my", "https://www.lazada.com.ph", "https://www.leagueoflegends.com", "https://www.leboncoin.fr",
360 | "https://www.lefigaro.fr", "https://www.lemonde.fr", "https://www.lenovo.com", "https://www.lenta.ru", "https://www.libero.it", "https://www.life.tw",
361 | "https://www.lifebuzz.com", "https://www.lifehacker.com", "https://www.lifewire.com", "https://www.liftable.com", "https://www.likemag.com", "https://www.line.me",
362 | "https://www.linkedin.com", "https://www.linkshrink.net", "https://www.linksynergy.com", "https://www.liputan6.com", "https://www.list-manage.com",
363 | "https://www.list-manage1.com", "https://www.list-manage2.com", "https://www.list.tmall.com", "https://www.live.com", "https://www.liveadexchanger.com",
364 | "https://www.livedoor.com", "https://www.livedoor.jp", "https://www.liveinternet.ru", "https://www.livejasmin.com", "https://www.livejournal.com",
365 | "https://www.liveleak.com", "https://www.livescore.com", "https://www.livestream.com", "https://www.livestrong.com", "https://www.lk21.me", "https://www.loc.gov",
366 | "https://www.loopia.com", "https://www.loopia.se", "https://www.lowes.com", "https://www.ltn.com.tw", "https://www.lun.com", "https://www.macromedia.com",
367 | "https://www.macys.com", "https://www.mail.ru", "https://www.mailchimp.com", "https://www.makemytrip.com", "https://www.mama.cn", "https://www.managemy.tel",
368 | "https://www.mangafox.me", "https://www.manoramaonline.com", "https://www.mapquest.com", "https://www.marca.com", "https://www.marketwatch.com",
369 | "https://www.marriott.com", "https://www.mashable.com", "https://www.mbc.net", "https://www.meb.gov.tr", "https://www.media.tumblr.com", "https://www.mediafire.com",
370 | "https://www.mediaoffers.click", "https://www.mediawhirl.net", "https://www.medium.com", "https://www.meetup.com", "https://www.mega.nz",
371 | "https://www.mercadolibre.com.ar", "https://www.mercadolibre.com.mx", "https://www.mercadolibre.com.ve", "https://www.mercadolivre.com.br", "https://www.merdeka.com",
372 | "https://www.merriam-webster.com", "https://www.messenger.com", "https://www.metropcs.mobi", "https://www.metropoles.com", "https://www.mi.com",
373 | "https://www.microsoft.com", "https://www.microsoftonline.com", "https://www.miibeian.gov.cn", "https://www.miitbeian.gov.cn", "https://www.mijndomein.nl",
374 | "https://www.milliyet.com.tr", "https://www.mirror.co.uk", "https://www.mit.edu", "https://www.mlb.com", "https://www.mmofreegames.online", "https://www.mobile.de",
375 | "https://www.mobile01.com", "https://www.momoshop.com.tw", "https://www.moneycontrol.com", "https://www.motherless.com", "https://www.mozilla.com",
376 | "https://www.mozilla.org", "https://www.msn.com", "https://www.mtv.com", "https://www.mundo.com", "https://www.my-hit.org", "https://www.myanimelist.net",
377 | "https://www.myfitnesspal.com", "https://www.myfreecams.com", "https://www.mynavi.jp", "https://www.mysagagame.com", "https://www.myshopify.com",
378 | "https://www.myspace.com", "https://www.mysql.com", "https://www.mywatchseries.to", "https://www.myway.com", "https://www.naij.com", "https://www.namejet.com",
379 | "https://www.nametests.com", "https://www.namnak.com", "https://www.nanoadexchange.com", "https://www.nasa.gov", "https://www.nationalgeographic.com",
380 | "https://www.nature.com", "https://www.naukri.com", "https://www.naver.com", "https://www.naver.jp", "https://www.nazwa.pl", "https://www.nba.com",
381 | "https://www.nbcnews.com", "https://www.ndtv.com", "https://www.neobux.com", "https://www.netflix.com", "https://www.netscape.com",
382 | "https://www.networkadvertising.org", "https://www.networksolutions.com", "https://www.newegg.com", "https://www.news.com.au", "https://www.newstarads.com",
383 | "https://www.newsweek.com", "https://www.newtabtv.com", "https://www.newyorker.com", "https://www.nextlnk13.com", "https://www.nginx.org", "https://www.nhk.or.jp",
384 | "https://www.nhs.uk", "https://www.nicovideo.jp", "https://www.nielsen.com", "https://www.nifty.com", "https://www.nih.gov", "https://www.nike.com",
385 | "https://www.nikkei.com", "https://www.nikkeibp.co.jp", "https://www.ning.com", "https://www.njoyapps.com", "https://www.noaa.gov", "https://www.nocookie.net",
386 | "https://www.nordstrom.com", "https://www.norton.com", "https://www.nownews.com", "https://www.npr.org", "https://www.nps.gov", "https://www.nsw.gov.au",
387 | "https://www.ntd.tv", "https://www.nur.kz", "https://www.nydailynews.com", "https://www.nymag.com", "https://www.nypost.com", "https://www.nytimes.com",
388 | "https://www.nyu.edu", "https://www.ocn.ne.jp", "https://www.odin.com", "https://www.oecd.org", "https://www.oeeee.com", "https://www.office.com",
389 | "https://www.office365.com", "https://www.ok.ru", "https://www.okcupid.com", "https://www.okdiario.com", "https://www.okezone.com", "https://www.okta.com",
390 | "https://www.olx.com.br", "https://www.olx.in", "https://www.olx.pl", "https://www.olx.ua", "https://www.onclkds.com", "https://www.one.com", "https://www.onedio.com",
391 | "https://www.onet.pl", "https://www.onlinesbi.com", "https://www.onlinevideoconverter.com", "https://www.op.gg", "https://www.openload.co",
392 | "https://www.openstreetmap.org", "https://www.opensubtitles.org", "https://www.opera.com", "https://www.oracle.com", "https://www.orange.fr", "https://www.oschina.net",
393 | "https://www.ouedkniss.com", "https://www.ouo.io", "https://www.outbrain.com", "https://www.ow.ly", "https://www.ox.ac.uk", "https://www.oxfordjournals.org",
394 | "https://www.paclitor.com", "https://www.pages.tmall.com", "https://www.pandora.com", "https://www.pantip.com", "https://www.parallels.com", "https://www.patch.com",
395 | "https://www.patreon.com", "https://www.paypal.com", "https://www.paytm.com", "https://www.pbs.org", "https://www.pchome.com.tw", "https://www.pcworld.com",
396 | "https://www.people.com.cn", "https://www.perfectgirls.net", "https://www.perfecttoolmedia.com", "https://www.performanceadexchange.com", "https://www.phoca.cz",
397 | "https://www.photobucket.com", "https://www.php.net", "https://www.phpbb.com", "https://www.pikabu.ru", "https://www.pinimg.com", "https://www.pinterest.com",
398 | "https://www.pirateproxy.cc", "https://www.piriform.com", "https://www.pixabay.com", "https://www.pixnet.net", "https://www.piz7ohhujogi.com",
399 | "https://www.plarium.com", "https://www.playstation.com", "https://www.plesk.com", "https://www.pof.com", "https://www.politico.com", "https://www.poloniex.com",
400 | "https://www.popads.net", "https://www.popcash.net", "https://www.popmyads.com", "https://www.porn.com", "https://www.porn555.com", "https://www.pornhub.com",
401 | "https://www.prestoris.com", "https://www.prezi.com", "https://www.primewire.ag", "https://www.princeton.edu", "https://www.prnewswire.com", "https://www.prnt.sc",
402 | "https://www.prothom-alo.com", "https://www.providr.com", "https://www.prpops.com", "https://www.prweb.com", "https://www.psu.edu", "https://www.ptt.cc",
403 | "https://www.pulseonclick.com", "https://www.python.org", "https://www.qiita.com", "https://www.qingdaonews.com", "https://www.qoolquiz.com", "https://www.qq.com",
404 | "https://www.quizlet.com", "https://www.quora.com", "https://www.rakuten.co.jp", "https://www.rambler.ru", "https://www.rapidgator.net", "https://www.rarbg.to",
405 | "https://www.rbc.ru", "https://www.re19fla.com", "https://www.reallifecam.com", "https://www.realtor.com", "https://www.redcross.org", "https://www.redd.it",
406 | "https://www.reddit.com", "https://www.redfin.com", "https://www.rediff.com", "https://www.redirectvoluum.com", "https://www.rednet.cn", "https://www.redtube.com",
407 | "https://www.register.it", "https://www.reimageplus.com", "https://www.repubblica.it", "https://www.researchgate.net", "https://www.reuters.com",
408 | "https://www.reverso.net", "https://www.ria.ru", "https://www.roblox.com", "https://www.rollingstone.com", "https://www.rottentomatoes.com", "https://www.rs6.net",
409 | "https://www.rt.com", "https://www.rumble.com", "https://www.ruten.com.tw", "https://www.rutracker.org", "https://www.rutube.ru", "https://www.sabah.com.tr",
410 | "https://www.sabq.org", "https://www.sagepub.com", "https://www.sahibinden.com", "https://www.sakura.ne.jp", "https://www.salesforce.com", "https://www.salon.com",
411 | "https://www.samsung.com", "https://www.sapo.pt", "https://www.sarkariresult.com", "https://www.savefrom.net", "https://www.sberbank.ru",
412 | "https://www.sciencedirect.com", "https://www.sciencemag.org", "https://www.scientificamerican.com", "https://www.scribd.com", "https://www.scribol.com",
413 | "https://www.searchprivate.org", "https://www.seasonvar.ru", "https://www.seattletimes.com", "https://www.secureserver.net", "https://www.sedo.com",
414 | "https://www.seesaa.net", "https://www.senate.gov", "https://www.setn.com", "https://www.sex.com", "https://www.seznam.cz", "https://www.sfgate.com",
415 | "https://www.sh.st", "https://www.shaparak.ir", "https://www.shareasale.com", "https://www.sharepoint.com", "https://www.shink.in", "https://www.shinystat.com",
416 | "https://www.shop-pro.jp", "https://www.shopify.com", "https://www.shutterstock.com", "https://www.si.edu", "https://www.sina.com.cn", "https://www.sinoptik.ua",
417 | "https://www.siteadvisor.com", "https://www.skype.com", "https://www.slack.com", "https://www.slate.com", "https://www.slickdeals.net", "https://www.slideshare.net",
418 | "https://www.smh.com.au", "https://www.smugmug.com", "https://www.snapdeal.com", "https://www.so.com", "https://www.softonic.com", "https://www.sogou.com",
419 | "https://www.sohu.com", "https://www.solarmoviez.to", "https://www.soso.com", "https://www.soundcloud.com", "https://www.souq.com", "https://www.sourceforge.net",
420 | "https://www.southwest.com", "https://www.spankbang.com", "https://www.speedtest.net", "https://www.spiegel.de", "https://www.sportbible.com", "https://www.sporx.com",
421 | "https://www.spotify.com", "https://www.spotscenered.info", "https://www.springer.com", "https://www.sputniknews.com", "https://www.squarespace.com",
422 | "https://www.stackexchange.com", "https://www.stackoverflow.com", "https://www.stanford.edu", "https://www.statcounter.com", "https://www.state.gov",
423 | "https://www.steamcommunity.com", "https://www.steampowered.com", "https://www.stockstar.com", "https://www.storify.com", "https://www.strava.com",
424 | "https://www.streamable.com", "https://www.streamcloud.eu", "https://www.studiopress.com", "https://www.stumbleupon.com", "https://www.suara.com",
425 | "https://www.subito.it", "https://www.subject.tmall.com", "https://www.subscene.com", "https://www.sumatoad.com", "https://www.suning.com", "https://www.superuser.com",
426 | "https://www.surveymonkey.com", "https://www.symantec.com", "https://www.t-online.de", "https://www.t.co", "https://www.tabelog.com", "https://www.taboola.com",
427 | "https://www.taleo.net", "https://www.tamilrockers.lv", "https://www.tandfonline.com", "https://www.taobao.com", "https://www.target.com", "https://www.taringa.net",
428 | "https://www.teamviewer.com", "https://www.tebyan.net", "https://www.techcrunch.com", "https://www.technorati.com", "https://www.techradar.com", "https://www.ted.com",
429 | "https://www.teepr.com", "https://www.telegram.me", "https://www.telegram.org", "https://www.telegraph.co.uk", "https://www.telewebion.com", "https://www.telnames.net",
430 | "https://www.terraclicks.com", "https://www.tfetimes.com", "https://www.theatlantic.com", "https://www.thebalance.com", "https://www.thedailybeast.com",
431 | "https://www.theepochtimes.com", "https://www.thefreedictionary.com", "https://www.theglobeandmail.com", "https://www.theguardian.com", "https://www.thehill.com",
432 | "https://www.thekitchn.com", "https://www.themeforest.net", "https://www.themegrill.com", "https://www.thepennyhoarder.com", "https://www.thepiratebay.org",
433 | "https://www.thesaurus.com", "https://www.thesun.co.uk", "https://www.thetimes.co.uk", "https://www.theverge.com", "https://www.thevideo.me",
434 | "https://www.thewhizmarketing.com", "https://www.thewhizproducts.com", "https://www.tianya.cn", "https://www.ticketmaster.com", "https://www.time.com",
435 | "https://www.timeanddate.com", "https://www.tinyurl.com", "https://www.tistory.com", "https://www.tmall.com", "https://www.today.com", "https://www.tokopedia.com",
436 | "https://www.tomshardware.com", "https://www.torrentproject.se", "https://www.torrentz2.eu", "https://www.trackmedia101.com", "https://www.translationbuddy.com",
437 | "https://www.trello.com", "https://www.tribunnews.com", "https://www.tripadvisor.co.uk", "https://www.tripadvisor.com", "https://www.tripod.com",
438 | "https://www.trulia.com", "https://www.trustpilot.com", "https://www.tube8.com", "https://www.tumblr.com", "https://www.turbobit.net", "https://www.tutorialspoint.com",
439 | "https://www.tvbs.com.tw", "https://www.twimg.com", "https://www.twitch.tv", "https://www.twitter.com", "https://www.txxx.com", "https://www.typepad.com",
440 | "https://www.uber.com", "https://www.uchicago.edu", "https://www.ucla.edu", "https://www.ucsd.edu", "https://www.udemy.com", "https://www.udn.com",
441 | "https://www.uidai.gov.in", "https://www.uk2.net", "https://www.ukr.net", "https://www.ultimate-guitar.com", "https://www.umblr.com", "https://www.umich.edu",
442 | "https://www.umn.edu", "https://www.un.org", "https://www.unc.edu", "https://www.unesco.org", "https://www.unity3d.com", "https://www.uol.com.br",
443 | "https://www.upenn.edu", "https://www.uploaded.net", "https://www.upornia.com", "https://www.ups.com", "https://www.uptobox.com", "https://www.uptodown.com",
444 | "https://www.upwork.com", "https://www.urbandictionary.com", "https://www.urdupoint.com", "https://www.usa.gov", "https://www.usatoday.com", "https://www.usc.edu",
445 | "https://www.usda.gov", "https://www.userapi.com", "https://www.usgs.gov", "https://www.usnews.com", "https://www.usps.com", "https://www.ustream.tv",
446 | "https://www.utexas.edu", "https://www.uzone.id", "https://www.va.gov", "https://www.variety.com", "https://www.varzesh3.com", "https://www.venturebeat.com",
447 | "https://www.verizonwireless.com", "https://www.vetogate.com", "https://www.vice.com", "https://www.videodownloadconverter.com", "https://www.videoyoum7.com",
448 | "https://www.vidzi.tv", "https://www.vimeo.com", "https://www.visma.com", "https://www.visualstudio.com", "https://www.viva.co.id", "https://www.vk.com",
449 | "https://www.vkontakte.ru", "https://www.vnexpress.net", "https://www.voc.com.cn", "https://www.vox.com", "https://www.voyeurhit.com", "https://www.vporn.com",
450 | "https://www.vtv.vn", "https://www.w3.org", "https://www.w3schools.com", "https://www.walmart.com", "https://www.warnerbros.com", "https://www.washington.edu",
451 | "https://www.washingtonpost.com", "https://www.washingtontimes.com", "https://www.watchfree.to", "https://www.wattpad.com", "https://www.weather.com",
452 | "https://www.web.de", "https://www.webex.com", "https://www.weblio.jp", "https://www.webmd.com", "https://www.webs.com", "https://www.webtretho.com",
453 | "https://www.weebly.com", "https://www.weevah2.top", "https://www.weibo.com", "https://www.wellsfargo.com", "https://www.welt.de", "https://www.westernjournalism.com",
454 | "https://www.wetransfer.com", "https://www.whatsapp.com", "https://www.whitehouse.gov", "https://www.who.int", "https://www.whoisprivacyprotect.com",
455 | "https://www.wikia.com", "https://www.wikihow.com", "https://www.wikimedia.org", "https://www.wikipedia.org", "https://www.wiktionary.org", "https://www.wiley.com",
456 | "https://www.windowsphone.com", "https://www.wired.com", "https://www.wisc.edu", "https://www.wish.com", "https://www.wittyfeed.com", "https://www.wix.com",
457 | "https://www.wixsite.com", "https://www.wordpress.com", "https://www.wordpress.org", "https://www.wordreference.com", "https://www.world.tmall.com",
458 | "https://www.worldbank.org", "https://www.wowhead.com", "https://www.wp.com", "https://www.wp.me", "https://www.wp.pl", "https://www.wsj.com", "https://www.wtoip.com",
459 | "https://www.wufoo.com", "https://www.wunderground.com", "https://www.wuxiaworld.com", "https://www.wykop.pl", "https://www.x48fly.com", "https://www.xbox.com",
460 | "https://www.xda-developers.com", "https://www.xe.com", "https://www.xfinity.com", "https://www.xgames-04.com", "https://www.xhamster.com", "https://www.xing.com",
461 | "https://www.xinhuanet.com", "https://www.xiti.com", "https://www.xnxx.com", "https://www.xtube.com", "https://www.xvideos.com", "https://www.y8.com",
462 | "https://www.yadi.sk", "https://www.yahoo.co.jp", "https://www.yahoo.com", "https://www.yale.edu", "https://www.yandex.com.tr", "https://www.yandex.kz",
463 | "https://www.yandex.ru", "https://www.yandex.ua", "https://www.yaplakal.com", "https://www.yelp.com", "https://www.yenisafak.com", "https://www.yesky.com",
464 | "https://www.yjc.ir", "https://www.youboy.com", "https://www.youdao.com", "https://www.youjizz.com", "https://www.youku.com", "https://www.youm7.com",
465 | "https://www.youporn.com", "https://www.youronlinechoices.com", "https://www.youth.cn", "https://www.youtube.com", "https://www.ytimg.com", "https://www.yts.ag",
466 | "https://www.zdnet.com", "https://www.zendesk.com", "https://www.zhanqi.tv", "https://www.zhihu.com", "https://www.zillow.com", "https://www.zing.vn",
467 | "https://www.zippyshare.com", "https://www.zoho.com", "https://www.zomato.com", "https://www.zone-telechargement.ws", "https://www.zoom.us"));
468 |
469 | }
470 |
--------------------------------------------------------------------------------