Bug Fixes

Bug Fixes
master
Abdul Mannan 2022-02-14 22:57:59 +05:00
parent 1cbf260441
commit 18de5b8eb6
20 changed files with 84 additions and 42 deletions

View File

@ -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

View File

@ -4,13 +4,13 @@
<head>
<!--Includes-->
<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-home-header-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="../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-->
<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>
<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 fas fa-eye"></span><span class="sidebar__list-info--color">Intelligence</span></a></p>
<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://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://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.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.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.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 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 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 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 fa fa-home"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
<br><br><br><br><br>
</div>
</nav>

View File

@ -10,7 +10,7 @@
<link rel="stylesheet" href="style/home/cs-footer.css" />
<link rel="stylesheet" href="style/shared/cs-global-properties.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" />
<!--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>
<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/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">
<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>

View File

@ -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
{
margin-left: -2px;

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,9 @@
/*Search*/
body{
a {
text-decoration:none !important;
color: #ffffff !important;
}
body{
opacity: 0;
transition: opacity 0s;
-webkit-transition: opacity 0s; /* Safari */

File diff suppressed because one or more lines are too long

View File

@ -220,7 +220,7 @@ public class geckoClients
@Override
public void onPortMessage(final @NonNull Object message,
final @NonNull WebExtension.Port port) {
if(message!=null){
if(message!=null && mSession.getProgress()==100){
event.invokeObserver(Arrays.asList(message, mSession.getCurrentURL()), M_INDEX_WEBSITE);
}
}

View File

@ -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);
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)){
String mVerificationURL = setGenesisVerificationToken(var1.uri);
initURL(mVerificationURL);
loadUri(mVerificationURL);

View File

@ -1,7 +1,6 @@
package com.hiddenservices.genesissearchengine.production.dataManager;
import android.annotation.SuppressLint;
import android.text.TextUtils;
import androidx.appcompat.app.AppCompatActivity;
import com.android.volley.DefaultRetryPolicy;
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.dataManager.models.crawlerRowModel;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import org.apache.commons.text.StringEscapeUtils;
import org.mozilla.thirdparty.com.google.android.exoplayer2.util.Log;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
@ -52,14 +49,15 @@ class crawlerDataModel
private void onParseHTML(String pHtml, String pURL){
String mHost = helperMethod.getHost(pURL);
try {
if (mHost != null){
if(!helperMethod.isValidURL(pURL)){
return;
}
pURL = helperMethod.normalize(pURL);
if(mDuplicate.size()<30 && mHost.contains(".onion") && !mHost.contains("genesis") && !mHost.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd") && !mDuplicate.contains(pURL)){
mHTML.add(new crawlerRowModel(pURL, pHtml));
mDuplicate.add(pURL);
}
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
@ -82,13 +80,16 @@ class crawlerDataModel
String mURL = strings.GENERIC_EMPTY_STR;
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/";
StringRequest mRequestData = new StringRequest(Request.Method.POST, url, response -> {
Log.d("",response);
}, error -> {
Log.d("",error.toString());
Log.d("",error.toString());
}) {
protected Map<String, String> getParams() {
mHtml = StringEscapeUtils.escapeXml11(mHtml);

View File

@ -511,32 +511,36 @@ public class helperMethod
}
}
public static String normalize(String url) throws URISyntaxException, NullPointerException {
String pathSeparator = "/";
public static String normalize(String url) {
try{
String pathSeparator = "/";
URI uri = new URI(url);
uri = uri.normalize();
URI uri = new URI(url);
uri = uri.normalize();
String path = uri.getPath();
String path = uri.getPath();
if (!path.startsWith(pathSeparator)) {
path = pathSeparator + path;
if (!path.startsWith(pathSeparator)) {
path = pathSeparator + path;
}
if (path.endsWith(pathSeparator)) {
path = path.substring(0, path.length() - 1);
}
String urlStr = uri.getScheme() + "://" + uri.getHost();
int port = uri.getPort();
if (port != -1) {
urlStr = urlStr + ":" + port;
}
urlStr = urlStr + path;
return urlStr;
}catch (Exception ex){
return null;
}
if (path.endsWith(pathSeparator)) {
path = path.substring(0, path.length() - 1);
}
String urlStr = uri.getScheme() + "://" + uri.getHost();
int port = uri.getPort();
if (port != -1) {
urlStr = urlStr + ":" + port;
}
urlStr = urlStr + path;
return urlStr;
}
static public String getHost(String link){

View File

@ -5,6 +5,7 @@
/* Generic Colors */
<color name="c_navigation_tint">#ffffff</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_header_icon_tint">#a6a6a6</color>
<color name="c_divider_line_light">#666666</color>