├── resources ├── image │ ├── logo.png │ ├── maps.png │ ├── dropbox.png │ ├── gmail.png │ ├── refresh.png │ ├── right.png │ ├── twitter.png │ ├── warning.png │ ├── youtube.png │ ├── facebook.png │ ├── linkedin.png │ ├── pinterest.png │ ├── smallStar.png │ ├── Settings-32.png │ ├── google-drive.png │ └── soundcloud.png └── fxml │ ├── SettingsWindow.fxml │ ├── FXMarquee.fxml │ ├── WebBrowserTabContextMenu.fxml │ ├── TopBar.fxml │ ├── CloseAppBox.fxml │ ├── WebBrowserTabController.fxml │ └── WebBrowserController.fxml ├── .settings ├── org.eclipse.m2e.core.prefs └── org.eclipse.jdt.core.prefs ├── src ├── main │ └── java │ │ └── com │ │ └── goxr3plus │ │ └── javafxwebbrowser │ │ ├── settings │ │ └── SettingsWindow.java │ │ ├── application │ │ ├── controllers │ │ │ ├── TopBar.java │ │ │ └── CloseAppBox.java │ │ └── Main.java │ │ ├── browser │ │ ├── WebBrowserTabContextMenu.java │ │ ├── AutoCompleteTextField.java │ │ ├── WebBrowserTabController.java │ │ └── WebBrowserController.java │ │ ├── marquee │ │ └── FXMarquee.java │ │ └── tools │ │ └── InfoTool.java └── assembly │ └── assembly.xml ├── .github └── FUNDING.yml ├── .gitattributes ├── .gitignore ├── README.md ├── pom.xml └── LICENSE /resources/image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/logo.png -------------------------------------------------------------------------------- /resources/image/maps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/maps.png -------------------------------------------------------------------------------- /resources/image/dropbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/dropbox.png -------------------------------------------------------------------------------- /resources/image/gmail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/gmail.png -------------------------------------------------------------------------------- /resources/image/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/refresh.png -------------------------------------------------------------------------------- /resources/image/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/right.png -------------------------------------------------------------------------------- /resources/image/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/twitter.png -------------------------------------------------------------------------------- /resources/image/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/warning.png -------------------------------------------------------------------------------- /resources/image/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/youtube.png -------------------------------------------------------------------------------- /resources/image/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/facebook.png -------------------------------------------------------------------------------- /resources/image/linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/linkedin.png -------------------------------------------------------------------------------- /resources/image/pinterest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/pinterest.png -------------------------------------------------------------------------------- /resources/image/smallStar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/smallStar.png -------------------------------------------------------------------------------- /resources/image/Settings-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/Settings-32.png -------------------------------------------------------------------------------- /resources/image/google-drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/google-drive.png -------------------------------------------------------------------------------- /resources/image/soundcloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goxr3plus/JavaFX-Web-Browser/HEAD/resources/image/soundcloud.png -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/settings/SettingsWindow.java: -------------------------------------------------------------------------------- 1 | package main.java.com.goxr3plus.javafxwebbrowser.settings; 2 | 3 | // TODO 4 | public class SettingsWindow { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /resources/fxml/SettingsWindow.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: GOXR3PLUSTUDIO 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: goxr3plusstudio 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | custom: https://www.paypal.me/GOXR3PLUSCOMPANY 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /resources/fxml/FXMarquee.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=10 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=10 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 12 | org.eclipse.jdt.core.compiler.release=enabled 13 | org.eclipse.jdt.core.compiler.source=10 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | /target/ 49 | .settings/.rebel.xml.bak 50 | 51 | 52 | .settings/org.eclipse.core.resources.prefs 53 | .project 54 | .classpath 55 | spartanizer.xml 56 | spartan.xml -------------------------------------------------------------------------------- /resources/fxml/WebBrowserTabContextMenu.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 5 | bin 6 | 7 | zip 8 | dir 9 | 10 | false 11 | 12 | 13 | ${project.basedir} 14 | . 15 | 16 | README* 17 | LICENSE* 18 | 19 | 20 | 21 | ${project.build.directory} 22 | . 23 | 24 | *.jar 25 | JavaFXWebBrowser_lib 26 | JavaFXWebBrowser_lib/* 27 | 28 | 29 | 30 | ${project.build.directory}/site 31 | docs 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/application/controllers/TopBar.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | */ 4 | package main.java.com.goxr3plus.javafxwebbrowser.application.controllers; 5 | 6 | import java.io.IOException; 7 | import java.util.logging.Level; 8 | import java.util.logging.Logger; 9 | 10 | import javafx.fxml.FXML; 11 | import javafx.fxml.FXMLLoader; 12 | import javafx.scene.control.Label; 13 | import javafx.scene.layout.BorderPane; 14 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool; 15 | 16 | /** 17 | * The Top bar of the application Window. 18 | * 19 | * @author GOXR3PLUS 20 | */ 21 | public class TopBar extends BorderPane { 22 | 23 | // ---------------------------------------------- 24 | 25 | @FXML 26 | private Label label; 27 | 28 | // ---------------------------------------------- 29 | 30 | /** The logger. */ 31 | private Logger logger = Logger.getLogger(getClass().getName()); 32 | 33 | /** 34 | * Constructor. 35 | */ 36 | public TopBar() { 37 | 38 | //---------------------FXML LOADER--------------------------------- 39 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "TopBar.fxml")); 40 | loader.setController(this); 41 | loader.setRoot(this); 42 | 43 | try { 44 | loader.load(); 45 | } catch (IOException ex) { 46 | logger.log(Level.WARNING, "", ex); 47 | } 48 | } 49 | 50 | /** 51 | * Called as soon as .fxml is initialized [[SuppressWarningsSpartan]] 52 | */ 53 | @FXML 54 | private void initialize() { 55 | 56 | //Root 57 | setRight(new CloseAppBox()); 58 | 59 | } 60 | 61 | public void setTitle(String title) { 62 | label.setText(title); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /resources/fxml/TopBar.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 32 |
33 |
34 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/application/controllers/CloseAppBox.java: -------------------------------------------------------------------------------- 1 | package main.java.com.goxr3plus.javafxwebbrowser.application.controllers; 2 | 3 | import java.io.IOException; 4 | 5 | import com.jfoenix.controls.JFXButton; 6 | 7 | import javafx.fxml.FXML; 8 | import javafx.fxml.FXMLLoader; 9 | import javafx.scene.layout.StackPane; 10 | import main.java.com.goxr3plus.javafxwebbrowser.application.Main; 11 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool; 12 | 13 | public class CloseAppBox extends StackPane { 14 | 15 | //-------------------------------------------------------------- 16 | 17 | @FXML 18 | private JFXButton minimize; 19 | 20 | @FXML 21 | private JFXButton maxOrNormalize; 22 | 23 | @FXML 24 | private JFXButton exitApplication; 25 | 26 | // ------------------------------------------------------------- 27 | 28 | /** 29 | * Constructor. 30 | */ 31 | public CloseAppBox() { 32 | 33 | // ------------------------------------FXMLLOADER ---------------------------------------- 34 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "CloseAppBox.fxml")); 35 | loader.setController(this); 36 | loader.setRoot(this); 37 | 38 | try { 39 | loader.load(); 40 | } catch (IOException ex) { 41 | ex.printStackTrace(); 42 | } 43 | 44 | } 45 | 46 | /** 47 | * Called as soon as fxml is initialized 48 | */ 49 | @FXML 50 | private void initialize() { 51 | 52 | // minimize 53 | minimize.setOnAction(ac -> Main.window.setIconified(true)); 54 | 55 | // maximize_normalize 56 | maxOrNormalize.setOnAction(ac -> Main.borderlessScene.maximizeStage()); 57 | 58 | // close 59 | exitApplication.setOnAction(ac -> System.exit(0)); 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Q5Q3WBIC) 2 | 3 | --- 4 | 5 |

JavaFX Web Browser ( Library )

6 |

7 | 🏵 8 |

9 |

10 | 11 | You always dreamed how to make a WebBrowser in JavaFX? Well then you are in the right place. 12 | 13 |

14 | 15 | --- 16 | 17 | [![Latest Version](https://img.shields.io/github/release/goxr3plus/JavaFX-Web-Browser.svg?style=flat-square)](https://github.com/goxr3plus/JavaFX-Web-Browser/releases) 18 | [![GitHub contributors][contributors-image]][contributors-url] 19 | [![HitCount](http://hits.dwyl.io/goxr3plus/JavaFX-Web-Browser.svg)](http://hits.dwyl.io/goxr3plus/JavaFX-Web-Browser) 20 | [![Total Downloads](https://img.shields.io/github/downloads/goxr3plus/JavaFX-Web-Browser/total.svg)](https://github.com/goxr3plus/JavaFX-Web-Browser/releases) 21 | 22 | [contributors-url]: https://github.com/goxr3plus/JavaFX-Web-Browser/graphs/contributors 23 | [contributors-image]: https://img.shields.io/github/contributors/goxr3plus/JavaFX-Web-Browser.svg 24 | [browser-jitpack-url]: https://jitpack.io/#goxr3plus/JavaFX-Web-Browser 25 | 26 | 27 | >Java 10 Web Browser release ===> [On the way](https://github.com/goxr3plus/JavaFX-Web-Browser/releases) ( I can't get it work with JitPack i don't know why ..... ) 28 | 29 | ![browser](https://user-images.githubusercontent.com/20374208/49159861-1d466d00-f32e-11e8-8718-d6b2b3d41b42.jpg) 30 | 31 | > Older Java 8 and 9 releases [here](https://github.com/goxr3plus/JavaFX-Web-Browser/wiki/Java-8-and-9-Releases) 32 | 33 | 34 | ### How to add this browser inside your application 35 | 36 | 37 | 1. 38 | 39 | You have to add it as a dependency , you can use [JitPack.io][browser-jitpack-url] 40 | 41 | > Step 1. Add the JitPack repository to your build file 42 | 43 | ```XML 44 | 45 | 46 | jitpack.io 47 | https://jitpack.io 48 | 49 | 50 | 51 | ``` 52 | 53 | > Step 2. Add the dependency 54 | 55 | ```xml 56 | 57 | com.github.goxr3plus 58 | JavaFX-Web-Browser 59 | Tag 60 | 61 | ``` 62 | 63 | 2. 64 | 65 | Then from inside your code you can create an intance or multiple instances of Browser like this: 66 | 67 | ``` JAVA 68 | public WebBrowserController webBrowser = new WebBrowserController(); 69 | ``` 70 | 71 | and add it for example inside a BorderPane : 72 | 73 | ```JAVA 74 | BorderPane borderPane = new BorderPane( webBrowser ); 75 | ``` 76 | 77 | Happy :) ? Cause i am ... 78 | 79 | --- 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/browser/WebBrowserTabContextMenu.java: -------------------------------------------------------------------------------- 1 | package main.java.com.goxr3plus.javafxwebbrowser.browser; 2 | 3 | import java.io.IOException; 4 | import java.util.logging.Level; 5 | import java.util.logging.Logger; 6 | 7 | import javafx.fxml.FXML; 8 | import javafx.fxml.FXMLLoader; 9 | import javafx.scene.control.ContextMenu; 10 | import javafx.scene.control.MenuItem; 11 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool; 12 | 13 | public class WebBrowserTabContextMenu extends ContextMenu { 14 | 15 | //-------------------------------------------------------------- 16 | 17 | @FXML 18 | private MenuItem newTab; 19 | 20 | @FXML 21 | private MenuItem reloadTab; 22 | 23 | @FXML 24 | private MenuItem closeOtherTabs; 25 | 26 | @FXML 27 | private MenuItem closeTabsRight; 28 | 29 | @FXML 30 | private MenuItem closeTabsLeft; 31 | 32 | @FXML 33 | private MenuItem closeTab; 34 | 35 | // ------------------------------------------------------------- 36 | 37 | /** The logger. */ 38 | private final Logger logger = Logger.getLogger(getClass().getName()); 39 | 40 | private final WebBrowserTabController webBrowserTabController; 41 | 42 | private final WebBrowserController webBrowserController; 43 | 44 | /** 45 | * Constructor 46 | * 47 | * @param tab 48 | * @param webBrowserController 49 | */ 50 | public WebBrowserTabContextMenu(WebBrowserTabController webBrowserTabController, WebBrowserController webBrowserController) { 51 | this.webBrowserTabController = webBrowserTabController; 52 | this.webBrowserController = webBrowserController; 53 | 54 | // ------------------------------------FXMLLOADER ---------------------------------------- 55 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "WebBrowserTabContextMenu.fxml")); 56 | loader.setController(this); 57 | loader.setRoot(this); 58 | 59 | try { 60 | loader.load(); 61 | } catch (IOException ex) { 62 | logger.log(Level.SEVERE, "", ex); 63 | } 64 | 65 | } 66 | 67 | /** 68 | * Called as soon as .FXML is loaded from FXML Loader 69 | */ 70 | @FXML 71 | private void initialize() { 72 | 73 | //newTab 74 | newTab.setOnAction(a -> webBrowserController.createAndAddNewTab()); 75 | 76 | //reloadTab 77 | reloadTab.setOnAction(a -> webBrowserTabController.reloadWebSite()); 78 | 79 | //closeTabsRight 80 | closeTabsRight.setOnAction(a -> webBrowserController.closeTabsToTheRight(webBrowserTabController.getTab())); 81 | 82 | //closeTabsLeft 83 | closeTabsLeft.setOnAction(a -> webBrowserController.closeTabsToTheLeft(webBrowserTabController.getTab())); 84 | 85 | //closeOtherTabs 86 | closeOtherTabs.setOnAction(a -> { 87 | webBrowserController.closeTabsToTheLeft(webBrowserTabController.getTab()); 88 | webBrowserController.closeTabsToTheRight(webBrowserTabController.getTab()); 89 | }); 90 | 91 | //closeTab 92 | closeTab.setOnAction(a -> webBrowserController.removeTab(webBrowserTabController.getTab())); 93 | 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/application/Main.java: -------------------------------------------------------------------------------- 1 | 2 | package main.java.com.goxr3plus.javafxwebbrowser.application; 3 | 4 | import javafx.application.Application; 5 | import javafx.scene.layout.BorderPane; 6 | import javafx.stage.Screen; 7 | import javafx.stage.Stage; 8 | import javafx.stage.StageStyle; 9 | import main.java.com.goxr3plus.fxborderlessscene.borderless.BorderlessScene; 10 | import main.java.com.goxr3plus.javafxwebbrowser.application.controllers.TopBar; 11 | import main.java.com.goxr3plus.javafxwebbrowser.browser.WebBrowserController; 12 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool; 13 | 14 | /** 15 | * From here you start the application 16 | * 17 | * @author Electron Tech! , GOXR3PLUS STUDIO 18 | * 19 | */ 20 | public class Main extends Application { 21 | 22 | public static Stage window; 23 | 24 | /** The Top Bar of the Application */ 25 | public static TopBar topBar; 26 | 27 | public static BorderPane root; 28 | 29 | public static BorderlessScene borderlessScene; 30 | 31 | private final int screenMinWidth = 800 , screenMinHeight = 600; 32 | 33 | @Override 34 | public void start(Stage primaryStage) { 35 | 36 | //TopBar 37 | topBar = new TopBar(); 38 | 39 | //Root 40 | root = new BorderPane(); 41 | root.setStyle("-fx-background-color:#202020"); 42 | root.setTop(topBar); 43 | root.setCenter(new WebBrowserController()); 44 | 45 | //Prepare the Stage 46 | window = primaryStage; 47 | window.setTitle("JavaFX Web Browser"); 48 | window.setWidth(getVisualScreenWidth() * 0.9); 49 | window.setHeight(getVisualScreenHeight() * 0.9); 50 | window.centerOnScreen(); 51 | window.getIcons().add(InfoTool.getImageFromResourcesFolder("logo.png")); 52 | window.centerOnScreen(); 53 | window.setOnCloseRequest(cl -> System.exit(0)); 54 | 55 | 56 | // Borderless Scene 57 | borderlessScene = new BorderlessScene(window, StageStyle.UNDECORATED, root, screenMinWidth, screenMinHeight); 58 | borderlessScene.getStylesheets().add(getClass().getResource("/css/application.css").toExternalForm()); 59 | borderlessScene.setMoveControl(topBar); 60 | window.setScene(borderlessScene); 61 | 62 | window.show(); 63 | 64 | } 65 | 66 | /** 67 | * Gets the visual screen width. 68 | * 69 | * @return The screen Width based on the visual bounds of the Screen.These bounds account for objects in the native windowing system 70 | * such as task bars and menu bars. These bounds are contained by Screen.bounds. 71 | */ 72 | public static double getVisualScreenWidth() { 73 | return Screen.getPrimary().getVisualBounds().getWidth(); 74 | } 75 | 76 | /** 77 | * Gets the visual screen height. 78 | * 79 | * @return The screen Height based on the visual bounds of the Screen.These bounds account for objects in the native windowing 80 | * system such as task bars and menu bars. These bounds are contained by Screen.bounds. 81 | */ 82 | public static double getVisualScreenHeight() { 83 | return Screen.getPrimary().getVisualBounds().getHeight(); 84 | } 85 | 86 | /** 87 | * Main Method 88 | * 89 | * @param args 90 | */ 91 | public static void main(String[] args) { 92 | System.setProperty("sun.net.http.allowRestrictedHeaders", "true"); 93 | launch(args); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /resources/fxml/CloseAppBox.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/marquee/FXMarquee.java: -------------------------------------------------------------------------------- 1 | package main.java.com.goxr3plus.javafxwebbrowser.marquee; 2 | 3 | import java.io.IOException; 4 | 5 | import javafx.animation.Animation; 6 | import javafx.animation.KeyFrame; 7 | import javafx.animation.Timeline; 8 | import javafx.beans.InvalidationListener; 9 | import javafx.beans.property.StringProperty; 10 | import javafx.event.ActionEvent; 11 | import javafx.event.EventHandler; 12 | import javafx.fxml.FXML; 13 | import javafx.fxml.FXMLLoader; 14 | import javafx.scene.control.Label; 15 | import javafx.scene.layout.Pane; 16 | import javafx.scene.shape.Rectangle; 17 | import javafx.util.Duration; 18 | import main.java.com.goxr3plus.javafxwebbrowser.tools.InfoTool; 19 | 20 | /** 21 | * When the screen element is not big enough to show the text then an animation will start automatically 22 | * 23 | * @author GOXR3PLUS 24 | * 25 | */ 26 | public class FXMarquee extends Pane { 27 | 28 | @FXML 29 | private Label label; 30 | 31 | // minimum distance to Pane bounds 32 | private static final double OFFSET = 5; 33 | 34 | private Timeline timeline = new Timeline(); 35 | 36 | private boolean animationAllowed = true; 37 | 38 | /** 39 | * Constructor 40 | */ 41 | public FXMarquee() { 42 | 43 | // FXMLLOADER 44 | try { 45 | FXMLLoader loader = new FXMLLoader(getClass().getResource(InfoTool.FXMLS + "FXMarquee.fxml")); 46 | loader.setController(this); 47 | loader.setRoot(this); 48 | loader.load(); 49 | } catch (IOException ex) { 50 | ex.printStackTrace(); 51 | } 52 | 53 | } 54 | 55 | /** 56 | * Called as soon as .fxml is initialized [[SuppressWarningsSpartan]] 57 | */ 58 | @FXML 59 | private void initialize() { 60 | 61 | //Clip 62 | Rectangle rectangle = new Rectangle(25, 25); 63 | rectangle.widthProperty().bind(widthProperty()); 64 | rectangle.heightProperty().bind(heightProperty()); 65 | setClip(rectangle); 66 | 67 | // Text 68 | //text.setManaged(false) 69 | 70 | startAnimation(); 71 | } 72 | 73 | /** 74 | * This method changes the text of the Marquee 75 | * 76 | * @param value 77 | * @return this 78 | */ 79 | public FXMarquee setText(String value) { 80 | 81 | // text 82 | label.setText(value); 83 | 84 | return this; 85 | } 86 | 87 | /** 88 | * Defines text string that is to be displayed. 89 | * 90 | * @return The TextProperty 91 | */ 92 | public StringProperty textProperty() { 93 | return label.textProperty(); 94 | } 95 | 96 | /** 97 | * This method starts the Animation of the marquee 98 | */ 99 | private final void startAnimation() { 100 | 101 | // KeyFrame 102 | KeyFrame updateFrame = new KeyFrame(Duration.millis(35), new EventHandler() { 103 | 104 | private boolean rightMovement; 105 | 106 | @Override 107 | public void handle(ActionEvent event) { 108 | double textWidth = label.getLayoutBounds().getWidth(); 109 | double paneWidth = getWidth(); 110 | double layoutX = label.getLayoutX(); 111 | 112 | if (2 * OFFSET + textWidth <= paneWidth && layoutX >= OFFSET) { 113 | // stop, if the pane is large enough and the position is 114 | // correct 115 | label.setLayoutX(OFFSET); 116 | timeline.stop(); 117 | } else { 118 | if ( ( rightMovement && layoutX >= OFFSET ) || ( !rightMovement && layoutX + textWidth + OFFSET <= paneWidth )) { 119 | // invert movement, if bounds are reached 120 | rightMovement = !rightMovement; 121 | } 122 | 123 | // update position 124 | if (rightMovement) { 125 | layoutX += 1; 126 | } else { 127 | layoutX -= 1; 128 | } 129 | label.setLayoutX(layoutX); 130 | } 131 | } 132 | }); 133 | timeline.getKeyFrames().add(updateFrame); 134 | timeline.setCycleCount(Animation.INDEFINITE); 135 | 136 | // listen to bound changes of the elements to start/stop the 137 | // animation 138 | InvalidationListener listener = o -> checkAnimationValidity(animationAllowed); 139 | 140 | label.layoutBoundsProperty().addListener(listener); 141 | widthProperty().addListener(listener); 142 | 143 | } 144 | 145 | /** 146 | * Starts or stops the animation based on the given boolean 147 | */ 148 | public void checkAnimationValidity(boolean continueAnimation) { 149 | animationAllowed = continueAnimation; 150 | if (animationAllowed) { 151 | double textWidth = label.getLayoutBounds().getWidth(); 152 | double paneWidth = getWidth(); 153 | label.setLayoutX(5); 154 | if (textWidth + 2 * OFFSET > paneWidth && timeline.getStatus() != Animation.Status.RUNNING) 155 | timeline.play(); 156 | } else { 157 | label.setLayoutX(OFFSET); 158 | timeline.stop(); 159 | } 160 | } 161 | 162 | /** 163 | * @return the label 164 | */ 165 | public Label getLabel() { 166 | return label; 167 | } 168 | 169 | } 170 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/tools/InfoTool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | */ 4 | package main.java.com.goxr3plus.javafxwebbrowser.tools; 5 | 6 | import java.io.File; 7 | import java.net.URISyntaxException; 8 | import java.util.logging.Level; 9 | import java.util.logging.Logger; 10 | 11 | import javafx.scene.image.Image; 12 | import main.java.com.goxr3plus.javafxwebbrowser.application.Main; 13 | 14 | /** 15 | * Provides useful methods for retrieving informations. 16 | * 17 | * @author GOXR3PLUS 18 | */ 19 | public final class InfoTool { 20 | 21 | /** Logger */ 22 | public static final Logger logger = Logger.getLogger(InfoTool.class.getName()); 23 | 24 | /** WebSite url */ 25 | public static final String WEBSITE = "http://goxr3plus.co.nf"; 26 | 27 | /** XR3Player Tutorials */ 28 | public static final String TUTORIALS = "https://www.youtube.com/playlist?list=PL-xqaiRUr_iRKDkpFWPfSRFmJvHSr1VJI"; 29 | 30 | /** The Constant images. */ 31 | public static final String IMAGES = "/image/"; 32 | 33 | /** The Constant styLes. */ 34 | public static final String STYLES = "/style/"; 35 | 36 | /** The Constant applicationCss. */ 37 | public static final String APPLICATIONCSS = "application.css"; 38 | 39 | /** The Constant fxmls. */ 40 | public static final String FXMLS = "/fxml/"; 41 | 42 | // -------------------------------------------------------------------------------------------------------------- 43 | 44 | /** 45 | * Private Constructor , we don't want instances of this class 46 | */ 47 | private InfoTool() { 48 | } 49 | 50 | /** 51 | * Returns the absolute path of the current directory in which the given class file is. 52 | * 53 | * @param classs 54 | * * @return The absolute path of the current directory in which the class file is. [it ends with File.Separator!!] 55 | * @author GOXR3PLUS[StackOverFlow user] + bachden [StackOverFlow user] 56 | */ 57 | public static final String getBasePathForClass(Class classs) { 58 | 59 | // Local variables 60 | File file; 61 | String basePath = ""; 62 | boolean failed = false; 63 | 64 | // Let's give a first try 65 | try { 66 | file = new File(classs.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); 67 | 68 | basePath = ( file.isFile() || file.getPath().endsWith(".jar") || file.getPath().endsWith(".zip") ) ? file.getParent() : file.getPath(); 69 | } catch (URISyntaxException ex) { 70 | failed = true; 71 | Logger.getLogger(classs.getName()).log(Level.WARNING, "Cannot firgue out base path for class with way (1): ", ex); 72 | } 73 | 74 | // The above failed? 75 | if (failed) 76 | try { 77 | file = new File(classs.getClassLoader().getResource("").toURI().getPath()); 78 | basePath = file.getAbsolutePath(); 79 | 80 | // the below is for testing purposes... 81 | // starts with File.separator? 82 | // String l = local.replaceFirst("[" + File.separator + 83 | // "/\\\\]", "") 84 | } catch (URISyntaxException ex) { 85 | Logger.getLogger(classs.getName()).log(Level.WARNING, "Cannot firgue out base path for class with way (2): ", ex); 86 | } 87 | 88 | // fix to run inside Eclipse 89 | if (basePath.endsWith(File.separator + "lib") || basePath.endsWith(File.separator + "bin") || basePath.endsWith("bin" + File.separator) 90 | || basePath.endsWith("lib" + File.separator)) { 91 | basePath = basePath.substring(0, basePath.length() - 4); 92 | } 93 | // fix to run inside NetBeans 94 | if (basePath.endsWith(File.separator + "build" + File.separator + "classes")) { 95 | basePath = basePath.substring(0, basePath.length() - 14); 96 | } 97 | // end fix 98 | if (!basePath.endsWith(File.separator)) 99 | basePath += File.separator; 100 | 101 | return basePath; 102 | } 103 | 104 | /** 105 | * Checks if a web site is reachable using ping command. 106 | * 107 | * @param host 108 | * the host 109 | * @return true if Connected on Internet, false if not. 110 | */ 111 | public static boolean isReachableByPing(String host) { 112 | try { 113 | 114 | // Start a new Process 115 | Process process = Runtime.getRuntime().exec("ping -" + ( System.getProperty("os.name").toLowerCase().startsWith("windows") ? "n" : "c" ) + " 1 " + host); 116 | 117 | //Wait for it to finish 118 | process.waitFor(); 119 | 120 | //Check the return value 121 | return process.exitValue() == 0; 122 | 123 | } catch (Exception ex) { 124 | Logger.getLogger(Main.class.getName()).log(Level.INFO, null, ex); 125 | return false; 126 | } 127 | } 128 | 129 | /** 130 | * Use this method to retrieve an image from the resources of the application. 131 | * 132 | * @param imageName 133 | * the image name 134 | * @return Returns an image which is already into the resources folder of the application 135 | */ 136 | public static Image getImageFromResourcesFolder(String imageName) { 137 | return new Image(InfoTool.class.getResourceAsStream(IMAGES + imageName)); 138 | } 139 | 140 | /** 141 | * Gets the file size edited in format "x MiB , y KiB" 142 | * 143 | * @param bytes 144 | * File size in bytes 145 | * @return a String representing the file size in MB and kB 146 | */ 147 | public static String getFileSizeEdited(long bytes) { 148 | 149 | //Find it 150 | int kilobytes = (int) ( bytes / 1024 ) , megabytes = kilobytes / 1024; 151 | if (kilobytes < 1024) 152 | return kilobytes + " KiB"; 153 | else if (kilobytes > 1024) 154 | return megabytes + " MiB + " + ( kilobytes - ( megabytes * 1024 ) ) + " KiB"; 155 | 156 | return "error"; 157 | 158 | } 159 | 160 | } 161 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.github.goxr3plus 8 | JavaFX-Web-Browser 9 | 10.0.0 10 | JavaFX-Web-Browser 11 | Advanced JavaFX Web Browser 12 | 13 | 14 | jar 15 | 16 | 17 | 10 18 | 10 19 | UTF-8 20 | 2.4.0 21 | 22 | 23 | 24 | JavaFXWebBrowser-${project.version} 25 | src 26 | 27 | 28 | resources 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | org.apache.maven.plugins 37 | maven-source-plugin 38 | 3.0.1 39 | 40 | 41 | attach-sources 42 | 43 | jar 44 | 45 | 46 | 47 | 48 | 49 | 50 | 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-compiler-plugin 58 | 3.8.0 59 | 60 | 10 61 | 10 62 | 10 63 | javac10 64 | UTF-8 65 | 66 | 67 | 68 | 69 | 70 | org.apache.maven.plugins 71 | maven-jar-plugin 72 | 3.0.2 73 | 74 | 75 | 76 | true 77 | main.java.com.goxr3plus.javafxwebbrowser.application.Main 78 | JavaFXWebBrowser_lib/ 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | org.apache.maven.plugins 87 | maven-dependency-plugin 88 | 3.0.2 89 | 90 | 91 | copy-dependencies 92 | package 93 | 94 | copy-dependencies 95 | 96 | 97 | 98 | junit 99 | ${project.build.directory}/JavaFXWebBrowser_lib/ 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | maven-assembly-plugin 108 | 3.1.0 109 | 110 | 111 | src/assembly/assembly.xml 112 | 113 | 114 | 115 | 116 | create-archive 117 | package 118 | 119 | single 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | jitpack.io 131 | https://jitpack.io 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | org.kordamp.ikonli 141 | ikonli-javafx 142 | ${ikonli.version} 143 | 144 | 145 | 146 | org.kordamp.ikonli 147 | ikonli-fontawesome-pack 148 | ${ikonli.version} 149 | 150 | 151 | 152 | 153 | com.jfoenix 154 | jfoenix 155 | 9.0.6 156 | 157 | 158 | 159 | 160 | com.github.goxr3plus 161 | FX-BorderlessScene 162 | V3.1.0 163 | 164 | 165 | 166 | 167 | commons-validator 168 | commons-validator 169 | 1.6 170 | 171 | 172 | * 173 | * 174 | 175 | 176 | 177 | 178 | org.jsoup 179 | jsoup 180 | 1.15.3 181 | 182 | 183 | com.github.imcdonagh 184 | image4j 185 | 0.7.2 186 | 187 | 188 | 190 | 191 | 192 | https://github.com/goxr3plus/JavaFX-Web-Browser 193 | -------------------------------------------------------------------------------- /src/main/java/com/goxr3plus/javafxwebbrowser/browser/AutoCompleteTextField.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | */ 4 | package main.java.com.goxr3plus.javafxwebbrowser.browser; 5 | 6 | import java.util.List; 7 | import java.util.SortedSet; 8 | import java.util.TreeSet; 9 | import java.util.stream.Collectors; 10 | 11 | import javafx.beans.InvalidationListener; 12 | import javafx.event.EventHandler; 13 | import javafx.geometry.Side; 14 | import javafx.scene.control.ContextMenu; 15 | import javafx.scene.control.IndexRange; 16 | import javafx.scene.control.MenuItem; 17 | import javafx.scene.control.TextField; 18 | import javafx.scene.input.KeyCode; 19 | import javafx.scene.input.KeyEvent; 20 | 21 | /** 22 | * The Class AutoCompleteTextField. 23 | * 24 | * @author GOXR3PLUS 25 | */ 26 | /** 27 | * @author GOXR3PLUS 28 | * 29 | */ 30 | public final class AutoCompleteTextField { 31 | 32 | /** The existing auto complete entries. in text field */ 33 | private SortedSet entries = new TreeSet<>(); 34 | 35 | /** The pop up used to select an entry. */ 36 | private final ContextMenu contextMenu = new ContextMenu(); 37 | 38 | /** The maximum entries. */ 39 | private int maximumEntries = 15; 40 | 41 | private final StringBuilder stringBuilder = new StringBuilder(); 42 | 43 | /** The last length. */ 44 | private int lastLength; 45 | 46 | private TextField textField; 47 | 48 | //----------------------------------------------------------------------------------- 49 | 50 | /** 51 | * Text Listener 52 | */ 53 | private final InvalidationListener textListener = v -> { 54 | if (textField.getText().length() == 0 || entries.isEmpty()) 55 | contextMenu.hide(); 56 | else { 57 | populatePopup(); 58 | if (!contextMenu.isShowing()) { 59 | contextMenu.show(textField, Side.BOTTOM, 0, 0); 60 | // Request focus on first item 61 | if (!contextMenu.getItems().isEmpty()) 62 | contextMenu.getSkin().getNode().lookup(".menu-item:nth-child(1)").requestFocus(); 63 | } 64 | } 65 | 66 | }; 67 | 68 | /** 69 | * Focus Listener 70 | */ 71 | private final InvalidationListener focusListener = v -> { 72 | lastLength = 0; 73 | stringBuilder.delete(0, stringBuilder.length()); 74 | contextMenu.hide(); 75 | }; 76 | 77 | /** 78 | * !!!!!!!!!!!!!!!!BUGGED !!!!!!!!!!!!!!!!! NEEDS FIXING KeyHandler 79 | */ 80 | private EventHandler keyHandler = key -> { 81 | KeyCode k = key.getCode(); 82 | 83 | // This variable is used to bypass the auto complete process if the 84 | // length is the same. this occurs if user types fast, the length of 85 | // textfield will record after the user has typed after a certain 86 | // delay. 87 | if (lastLength != ( textField.getLength() - textField.getSelectedText().length() )) 88 | lastLength = textField.getLength() - textField.getSelectedText().length(); 89 | 90 | boolean pass = true; 91 | System.out.println(k.getName()); 92 | 93 | // Not causing problems by these buttons 94 | if (key.isControlDown() || k == KeyCode.BACK_SPACE || k == KeyCode.RIGHT || k == KeyCode.LEFT || k == KeyCode.DELETE || k == KeyCode.HOME || k == KeyCode.END 95 | || k == KeyCode.TAB) { 96 | pass = false; 97 | } 98 | 99 | if (pass) { 100 | IndexRange indexRange = textField.getSelection(); 101 | stringBuilder.delete(0, stringBuilder.length()); 102 | stringBuilder.append(textField.getText()); 103 | // remove selected string index until end so only unselected text 104 | // will be recorded 105 | try { 106 | stringBuilder.delete(indexRange.getStart(), stringBuilder.length()); 107 | } catch (Exception e) { 108 | e.printStackTrace(); 109 | } 110 | 111 | String originalLowered = textField.getText().toLowerCase(); 112 | // Select the first Matching 113 | for (String entry : entries) 114 | if (entry.toLowerCase().startsWith(originalLowered)) { 115 | try { 116 | textField.setText(entry); 117 | } catch (Exception e) { 118 | textField.setText(stringBuilder.toString()); 119 | } 120 | textField.positionCaret(stringBuilder.toString().length()); 121 | textField.selectEnd(); 122 | break; 123 | } 124 | 125 | System.out.println("Passed..."); 126 | } 127 | }; 128 | 129 | //-------------------------------------------------------------------------------------- 130 | 131 | /** 132 | * Add auto completion capabilities to the given textField 133 | * 134 | * @param textField 135 | * @param maximumEntries 136 | * @param addKeyListener 137 | * !NOT IMPLEMENTED! 138 | * @param list 139 | * W 140 | */ 141 | public void bindAutoCompletion(TextField textField , int maximumEntries , boolean addKeyListener , List list) { 142 | entries.addAll(list); 143 | bindAutoCompletion(textField, maximumEntries, addKeyListener); 144 | } 145 | 146 | /** 147 | * Warning with this method will lead to NullPointerException if the given SortedSet goes to null , i am using it when i have really big 148 | * TreeSets on my Application
149 | * 150 | * Add auto completion capabilities to the given textField 151 | * 152 | * @param textField 153 | * @param maximumEntries 154 | * @param addKeyListener 155 | * !NOT IMPLEMENTED! 156 | * @param list 157 | */ 158 | public void bindAutoCompletion(TextField textField , int maximumEntries , boolean addKeyListener , SortedSet sortedSet) { 159 | entries = sortedSet; 160 | bindAutoCompletion(textField, maximumEntries, addKeyListener); 161 | } 162 | 163 | /** 164 | * Add auto completion capabilities to the given textField 165 | * 166 | * @param textField 167 | * @param maximumEntries 168 | * @param addKeyListener 169 | * !NOT IMPLEMENTED! 170 | */ 171 | public void bindAutoCompletion(TextField textField , int maximumEntries , boolean addKeyListener) { 172 | this.textField = textField; 173 | this.maximumEntries = maximumEntries <= 0 ? 10 : maximumEntries; 174 | 175 | // TextChanged Listener 176 | textField.textProperty().addListener(textListener); 177 | 178 | // FocusListener 179 | textField.focusedProperty().addListener(focusListener); 180 | 181 | //Add keyHandler? 182 | //if (addKeyListener) 183 | // textField.addEventHandler(KeyEvent.KEY_RELEASED, keyHandler); 184 | 185 | //if(addAutoLearner) 186 | // textField.addEventHandler(KeyEvent.KEY_RELEASED, keyHandler); 187 | 188 | } 189 | 190 | /** 191 | * Remove autoCompletion listeners from the TextField 192 | */ 193 | public void removeAutoCompletion() { 194 | 195 | // TextChanged Listener 196 | textField.textProperty().removeListener(textListener); 197 | 198 | // FocusListener 199 | textField.focusedProperty().removeListener(focusListener); 200 | 201 | //Add keyHandler? 202 | textField.removeEventHandler(KeyEvent.KEY_RELEASED, keyHandler); 203 | } 204 | 205 | /** 206 | * Get the existing set of auto complete entries. 207 | * 208 | * @return The existing auto complete entries. 209 | */ 210 | public SortedSet getEntries() { 211 | return entries; 212 | } 213 | 214 | /** 215 | * @return the maximumEntries 216 | */ 217 | public int getMaximumEntries() { 218 | return maximumEntries; 219 | } 220 | 221 | /** 222 | * @param maximumEntries 223 | * the maximumEntries to set 224 | */ 225 | public void setMaximumEntries(int maximumEntries) { 226 | this.maximumEntries = maximumEntries; 227 | } 228 | 229 | /** 230 | * Populate the entry set with the given search results. 231 | */ 232 | private void populatePopup() { 233 | contextMenu.getItems().clear(); 234 | 235 | String text = textField.getText().toLowerCase(); 236 | 237 | // Filter the first maximumEntries matching the text 238 | contextMenu.getItems() 239 | .addAll(entries.stream().filter(string -> string.toLowerCase().contains(text.toLowerCase())).limit(maximumEntries).map(MenuItem::new).collect(Collectors.toList())); 240 | contextMenu.getItems().forEach(item -> item.setOnAction(a -> { 241 | textField.setText(item.getText()); 242 | textField.positionCaret(textField.getLength()); 243 | })); 244 | } 245 | } 246 | -------------------------------------------------------------------------------- /resources/fxml/WebBrowserTabController.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 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 | -------------------------------------------------------------------------------- /resources/fxml/WebBrowserController.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 |
200 |
201 |
202 | -------------------------------------------------------------------------------- /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 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 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 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 | --------------------------------------------------------------------------------