mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
1cbf260441
commit
18de5b8eb6
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M248 167.5l64.9 98.8H183.1l64.9-98.8zM496 256c0 136.9-111.1 248-248 248S0 392.9 0 256 111.1 8 248 8s248 111.1 248 248zm-99.8 82.7L248 115.5 99.8 338.7h30.4l33.6-51.7h168.6l33.6 51.7h30.2z"/></svg>
|
After Width: | Height: | Size: 478 B |
|
@ -4,13 +4,13 @@
|
||||||
<head>
|
<head>
|
||||||
<!--Includes-->
|
<!--Includes-->
|
||||||
<link rel="icon" href="../resources/images/favicon.ico">
|
<link rel="icon" href="../resources/images/favicon.ico">
|
||||||
<link rel="stylesheet" href="style/home-dark/cs-homepage-dark.css" />
|
|
||||||
<link rel="stylesheet" href="style/home-dark/cs-footer-dark.css" />
|
<link rel="stylesheet" href="style/home-dark/cs-footer-dark.css" />
|
||||||
<link rel="stylesheet" href="style/home-dark/cs-home-header-blade-dark.css" />
|
<link rel="stylesheet" href="style/home-dark/cs-home-header-blade-dark.css" />
|
||||||
<link rel="stylesheet" href="style/home-dark/cs-sidebar-blade-dark.css" />
|
<link rel="stylesheet" href="style/home-dark/cs-sidebar-blade-dark.css" />
|
||||||
<link rel="stylesheet" href="style/shared/cs-global-properties.css" />
|
<link rel="stylesheet" href="style/shared/cs-global-properties.css" />
|
||||||
<link rel="stylesheet" href="../resources/style/cs-bootstrap.css">
|
<link rel="stylesheet" href="../resources/style/cs-bootstrap.css">
|
||||||
<link rel="stylesheet" href="style/shared/cs-font-awesome.css" />
|
<link rel="stylesheet" href="style/shared/font-awesome/css/all.min.css"/>
|
||||||
|
<link rel="stylesheet" href="style/home-dark/cs-homepage-dark.css" />
|
||||||
|
|
||||||
<!--Javascripts-->
|
<!--Javascripts-->
|
||||||
<script src="../resources/javascript/js-jquery.js"></script>
|
<script src="../resources/javascript/js-jquery.js"></script>
|
||||||
|
@ -91,12 +91,13 @@
|
||||||
<p><a class="sidebar__list-info" href="https://whatismycountry.com/"><span class="sidebar__list-icon fas fa-map-marked-alt"></span><span class="sidebar__list-info--color">Locations</span></a></p>
|
<p><a class="sidebar__list-info" href="https://whatismycountry.com/"><span class="sidebar__list-icon fas fa-map-marked-alt"></span><span class="sidebar__list-info--color">Locations</span></a></p>
|
||||||
<hr class="sidebar__line-divider">
|
<hr class="sidebar__line-divider">
|
||||||
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
|
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
|
||||||
|
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fas fa-eye"></span><span class="sidebar__list-info--color">Intelligence</span></a></p>
|
||||||
<hr class="sidebar__line-divider">
|
<hr class="sidebar__line-divider">
|
||||||
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-facebook-f"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
|
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
|
||||||
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-twitter"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
|
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
|
||||||
<p><a class="sidebar__list-info" href="https://www.linkedin.com/company/genesis-hidden-technologies"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-linkedin-in"></span><span class="sidebar__list-info--color">Linkedin</span></a></p>
|
<p><a class="sidebar__list-info" href="https://www.linkedin.com/company/genesis-hidden-technologies"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Linkedin</span></a></p>
|
||||||
<p><a class="sidebar__list-info" href="https://www.instagram.com/genesishiddentechnologies/?hl=en"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-instagram"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
|
<p><a class="sidebar__list-info" href="https://www.instagram.com/genesishiddentechnologies/?hl=en"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
|
||||||
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-youtube"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
|
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
|
||||||
<br><br><br><br><br>
|
<br><br><br><br><br>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<link rel="stylesheet" href="style/home/cs-footer.css" />
|
<link rel="stylesheet" href="style/home/cs-footer.css" />
|
||||||
<link rel="stylesheet" href="style/shared/cs-global-properties.css" />
|
<link rel="stylesheet" href="style/shared/cs-global-properties.css" />
|
||||||
<link rel="stylesheet" href="../resources/style/cs-bootstrap.css">
|
<link rel="stylesheet" href="../resources/style/cs-bootstrap.css">
|
||||||
<link rel="stylesheet" href="style/shared/cs-font-awesome.css" />
|
<link rel="stylesheet" href="style/shared/font-awesome/css/all.min.css"/>
|
||||||
<link rel="stylesheet" href="style/home/cs-homepage.css" />
|
<link rel="stylesheet" href="style/home/cs-homepage.css" />
|
||||||
|
|
||||||
<!--Javascripts-->
|
<!--Javascripts-->
|
||||||
|
@ -89,6 +89,7 @@
|
||||||
<p><a class="sidebar__list-info" href="https://whatismycountry.com/"><span class="sidebar__list-icon fas fa-map-marked-alt"></span><span class="sidebar__list-info--color">Locations</span></a></p>
|
<p><a class="sidebar__list-info" href="https://whatismycountry.com/"><span class="sidebar__list-icon fas fa-map-marked-alt"></span><span class="sidebar__list-info--color">Locations</span></a></p>
|
||||||
<hr class="sidebar__line-divider">
|
<hr class="sidebar__line-divider">
|
||||||
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
|
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
|
||||||
|
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/intelligence"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-eye"></span><span class="sidebar__list-info--color">Intelligence</span></a></p>
|
||||||
<hr class="sidebar__line-divider">
|
<hr class="sidebar__line-divider">
|
||||||
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-facebook-f"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
|
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-facebook-f"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
|
||||||
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-twitter"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
|
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-twitter"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
a {
|
||||||
|
text-decoration:none !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0s;
|
||||||
|
-webkit-transition: opacity 0s; /* Safari */
|
||||||
|
}
|
||||||
|
|
||||||
|
.body_fadein {
|
||||||
|
opacity: 1;
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
transition-property: opacity;
|
||||||
|
}
|
||||||
.home
|
.home
|
||||||
{
|
{
|
||||||
margin-left: -2px;
|
margin-left: -2px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,8 @@
|
||||||
/*Search*/
|
/*Search*/
|
||||||
|
a {
|
||||||
|
text-decoration:none !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
body{
|
body{
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0s;
|
transition: opacity 0s;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -220,7 +220,7 @@ public class geckoClients
|
||||||
@Override
|
@Override
|
||||||
public void onPortMessage(final @NonNull Object message,
|
public void onPortMessage(final @NonNull Object message,
|
||||||
final @NonNull WebExtension.Port port) {
|
final @NonNull WebExtension.Port port) {
|
||||||
if(message!=null){
|
if(message!=null && mSession.getProgress()==100){
|
||||||
event.invokeObserver(Arrays.asList(message, mSession.getCurrentURL()), M_INDEX_WEBSITE);
|
event.invokeObserver(Arrays.asList(message, mSession.getCurrentURL()), M_INDEX_WEBSITE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -548,7 +548,14 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
|
||||||
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), enums.etype.M_NEW_IDENTITY_MESSAGED);
|
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), enums.etype.M_NEW_IDENTITY_MESSAGED);
|
||||||
return GeckoResult.fromValue(AllowOrDeny.DENY);
|
return GeckoResult.fromValue(AllowOrDeny.DENY);
|
||||||
}
|
}
|
||||||
|
String mNormalizeURL = helperMethod.normalize(var1.uri);
|
||||||
|
if(mNormalizeURL!=null && mNormalizeURL.endsWith("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
|
||||||
|
initURL(constants.CONST_GENESIS_DOMAIN_URL);
|
||||||
|
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, false), enums.etype.M_LOAD_HOMEPAGE_GENESIS);
|
||||||
|
return GeckoResult.fromValue(AllowOrDeny.DENY);
|
||||||
|
}
|
||||||
if(!var1.uri.contains(constants.CONST_GENESIS_GMT_TIME_GET_KEY) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED_DARK) && var1.uri.startsWith("http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY) && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY)){
|
if(!var1.uri.contains(constants.CONST_GENESIS_GMT_TIME_GET_KEY) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED_DARK) && var1.uri.startsWith("http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY) && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY)){
|
||||||
|
|
||||||
String mVerificationURL = setGenesisVerificationToken(var1.uri);
|
String mVerificationURL = setGenesisVerificationToken(var1.uri);
|
||||||
initURL(mVerificationURL);
|
initURL(mVerificationURL);
|
||||||
loadUri(mVerificationURL);
|
loadUri(mVerificationURL);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.hiddenservices.genesissearchengine.production.dataManager;
|
package com.hiddenservices.genesissearchengine.production.dataManager;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.text.TextUtils;
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import com.android.volley.DefaultRetryPolicy;
|
import com.android.volley.DefaultRetryPolicy;
|
||||||
import com.android.volley.Request;
|
import com.android.volley.Request;
|
||||||
|
@ -13,14 +12,12 @@ import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.crawlerRowModel;
|
import com.hiddenservices.genesissearchengine.production.dataManager.models.crawlerRowModel;
|
||||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||||
|
|
||||||
import org.apache.commons.text.StringEscapeUtils;
|
import org.apache.commons.text.StringEscapeUtils;
|
||||||
import org.mozilla.thirdparty.com.google.android.exoplayer2.util.Log;
|
import org.mozilla.thirdparty.com.google.android.exoplayer2.util.Log;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.Proxy;
|
import java.net.Proxy;
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -52,14 +49,15 @@ class crawlerDataModel
|
||||||
|
|
||||||
private void onParseHTML(String pHtml, String pURL){
|
private void onParseHTML(String pHtml, String pURL){
|
||||||
String mHost = helperMethod.getHost(pURL);
|
String mHost = helperMethod.getHost(pURL);
|
||||||
try {
|
if (mHost != null){
|
||||||
|
if(!helperMethod.isValidURL(pURL)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
pURL = helperMethod.normalize(pURL);
|
pURL = helperMethod.normalize(pURL);
|
||||||
if(mDuplicate.size()<30 && mHost.contains(".onion") && !mHost.contains("genesis") && !mHost.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd") && !mDuplicate.contains(pURL)){
|
if(mDuplicate.size()<30 && mHost.contains(".onion") && !mHost.contains("genesis") && !mHost.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd") && !mDuplicate.contains(pURL)){
|
||||||
mHTML.add(new crawlerRowModel(pURL, pHtml));
|
mHTML.add(new crawlerRowModel(pURL, pHtml));
|
||||||
mDuplicate.add(pURL);
|
mDuplicate.add(pURL);
|
||||||
}
|
}
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +80,10 @@ class crawlerDataModel
|
||||||
String mURL = strings.GENERIC_EMPTY_STR;
|
String mURL = strings.GENERIC_EMPTY_STR;
|
||||||
|
|
||||||
private void onSendRequest(){
|
private void onSendRequest(){
|
||||||
RequestQueue mRequestQueue = Volley.newRequestQueue(mContext);
|
if (mHTML.size()<100){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
RequestQueue mRequestQueue = Volley.newRequestQueue(mContext, new ProxiedHurlStack());
|
||||||
|
|
||||||
String url = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/user_index/";
|
String url = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/user_index/";
|
||||||
StringRequest mRequestData = new StringRequest(Request.Method.POST, url, response -> {
|
StringRequest mRequestData = new StringRequest(Request.Method.POST, url, response -> {
|
||||||
|
|
|
@ -511,7 +511,8 @@ public class helperMethod
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String normalize(String url) throws URISyntaxException, NullPointerException {
|
public static String normalize(String url) {
|
||||||
|
try{
|
||||||
String pathSeparator = "/";
|
String pathSeparator = "/";
|
||||||
|
|
||||||
URI uri = new URI(url);
|
URI uri = new URI(url);
|
||||||
|
@ -537,6 +538,9 @@ public class helperMethod
|
||||||
urlStr = urlStr + path;
|
urlStr = urlStr + path;
|
||||||
|
|
||||||
return urlStr;
|
return urlStr;
|
||||||
|
}catch (Exception ex){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static public String getHost(String link){
|
static public String getHost(String link){
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
/* Generic Colors */
|
/* Generic Colors */
|
||||||
<color name="c_navigation_tint">#ffffff</color>
|
<color name="c_navigation_tint">#ffffff</color>
|
||||||
<color name="c_background">#1c1b21</color>
|
<color name="c_background">#1c1b21</color>
|
||||||
|
<color name="c_text_color_highlight_v2">#1f1e25</color>
|
||||||
<color name="c_background_inverted">#ffffff</color>
|
<color name="c_background_inverted">#ffffff</color>
|
||||||
<color name="c_header_icon_tint">#a6a6a6</color>
|
<color name="c_header_icon_tint">#a6a6a6</color>
|
||||||
<color name="c_divider_line_light">#666666</color>
|
<color name="c_divider_line_light">#666666</color>
|
||||||
|
|
Loading…
Reference in New Issue