Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2022-02-10 14:38:53 +05:00
parent c55998ed16
commit b26dcf28c5
25 changed files with 947 additions and 61 deletions

View File

@ -98,7 +98,7 @@ dependencies {
implementation "org.mozilla.components:browser-engine-gecko:75.0.0" implementation "org.mozilla.components:browser-engine-gecko:75.0.0"
implementation "org.mozilla.components:browser-icons:91.0.6" implementation "org.mozilla.components:browser-icons:91.0.6"
implementation "org.mozilla.geckoview:geckoview: 97.0.20220202182137" implementation "org.mozilla.geckoview:geckoview: 90.0.20210705185941"
implementation "org.mozilla.components:concept-fetch:91.0.6" implementation "org.mozilla.components:concept-fetch:91.0.6"
implementation "org.mozilla.components:concept-base:91.0.6" implementation "org.mozilla.components:concept-base:91.0.6"
implementation "org.mozilla.components:support-utils:91.0.6" implementation "org.mozilla.components:support-utils:91.0.6"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,120 @@
/*footer-bar style*/
.footer {
margin-top: 40vh;
}
.footer__footer-bar{
background-color:#1f1e25;
border-style: solid;
border-top-width: 0;
border-right-width: 0;
border-left-width: 0;
border-color:#131216;
border-bottom-width: 0;
width:100%;
padding-top:17px;
padding-bottom:17px;
}
.footer__footer-bar--border-bottom {
border-bottom-width: 1px;
}
.footer__footer-bar--text-bottom{
color:#767676;
font-size: 13px;
text-align:left;
}
.footer__footer-bar__footer-bar-bottom{
background-color:#1f1e25;
border-bottom: 1px solid #131216;
width:100%;
padding-top:17px;
padding-bottom:17px;
}
.footer__footer-bar-social{
margin-left: 40px;
color: white;
font-size: 17px;
cursor: pointer;
}
.footer__footer-bar-social:hover{
color: #264d73;
}
.footer__footer-bar-social--left{
margin-left: 30px;
}
.footer__footer-bar__footer-bar-mid{
background-color:#1f1e25;
border-bottom: 1px solid #131216;
width:100%;
padding-top:17px;
padding-bottom:17px;
}
.footer__catagories--general{
padding: 15px 15px 14px;
}
.footer__catagories--general:hover{
text-decoration: none;
border-bottom: 4px solid white;
animation-name: footer__catagories--border-animate;
color: white;
}
.footer__catagories--general:focus {
color: white;
text-decoration: none;
border-bottom: 4px solid white;
}
.footer__catagories{
cursor: pointer;
color:white;
font-size: 14px;
}
.footer__catagories{
cursor: pointer;
color:white;
font-size: 14px;
font-weight: 500;
font-family: arial,sans-serif;
}
/*footer-bar events*/
.footer__catagories:hover{
}
.footer__catagories--main:hover{
color: white;
text-decoration: none;
border-bottom: 4px solid white;
}
.footer__catagories--main:focus {
color: white;
text-decoration: none;
border-bottom: 4px solid white;
}
.footer__catagories--main{
color: white;
margin-left: 15px;
padding: 15px 13px 14px;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
}
@media only screen and (max-width: 943px) {
.footer {
display: none;
}
}

View File

@ -0,0 +1,65 @@
.home-header{
text-align: right;
padding-top: 10px;
background: #18171c;
height: 50px;
border-bottom: 1px solid #0c0b0e;
}
.home-header__catagory{
margin-right: 22px;
cursor: pointer;
font-size: 14px;
padding: 13px 7px 12px;
margin-top: 41px;
border-bottom: 4px solid #18171c;
font-weight: 700;
}
.home-header__catagory--highlight{
color:#1967d2;
margin-right: 10px;
}
.home-header__catagory--normal{
color: #999999;
}
.home-header__catagory:hover{
text-decoration: none;
animation-duration: 2s;
animation-name: home-header__catagory-hover-animate;
border-bottom: 4px solid #ffffff;
transition: border-bottom-color 0.25s ease-in-out;
}
/* General Styles*/
.home-header__vertical-line {
border-left: 2px solid #000000;
height: 120px;
margin-right: 15px;
}
/* Mobile Devices */
@media only screen and (max-width: 943px) {
.home-header__catagory--image{
display: none;
}
.home-header{
display: none;
}
}
/* Animations */
@keyframes home-header__catagory-hover-animate {
10% {
background: #18171c;
color: #336699;
}
100% {
background: #18171c;
color: #336699;
}
}

View File

@ -267,6 +267,7 @@
height: 4px; height: 4px;
background: orange; background: orange;
margin: 0 43% 20px; margin: 0 43% 20px;
margin-bottom: 25px;
} }
.home__reference_links{ .home__reference_links{
margin-top: 0 !important; margin-top: 0 !important;
@ -285,3 +286,382 @@
height:auto; height:auto;
} }
} }
/*Search*/
.body_fadein {
opacity: 1;
transition-duration: 0.5s;
transition-property: opacity;
}
.hi_background{
background-color : #1c1b21 !important;
}
.clear_selection{
moz-user-select: none;
-webkit-user-select: none;
-ms-user-select:none;
user-select:none;
-o-user-select:none;
}
#hi_search_container {
margin-top:15vh;
margin-bottom: -25px;
}
@media only screen and (max-width: 943px) {
#hi_search_container {
margin-top:9vh;
}
}
.hi_logo_text{
max-width: 450px;
width: 90%;
height: auto;
display: block;
margin-top: -20px;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
}
@media only screen and (max-width: 943px) {
.hp_logo_text {
max-width: 380px;
}
}
.hi_logo_image{
max-width: 150px;
width: 30%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 00px;
}
@media only screen and (max-width: 943px) {
.hi_logo_image {
max-width: 100px;
}
}
.hi_search__logo{
text-align: center;
color: lightblue;
margin-bottom: -17px;
font-style: normal;
font-variant: normal;
line-height: 26px;
font-family: helvetica, monospace;
font-weight:bold;
}
.hi_search__search-box{
border-radius: 6px !important;
align-self: center;
height:42px !important;
outline: none;
color:#cccccc !important;
border-color: #3c3946 !important;
width:91% !important;
max-width: 575px;
display:block;
font:16px arial,sans-serif;
color: black;
padding-left:22px;
margin: 0 auto 5px;
background: #474554 !important;
box-shadow: 0 1px 1px 0 #535062;
-webkit-transition: .0s;
-moz-transition: .0s;
-o-transition: .0s;
transition: .0s;
}
.hi_reference{
align-self: center;
height:auto;
padding: 10px;
padding-bottom: 0px;
border-radius: 6px;
outline: none;
border: 1px solid #e6e6e6;
box-shadow: 0 3px 3px 0 #d9d9d9;
width:91% !important;
max-width: 575px;
display:block;
font:16px arial,sans-serif;
color: #79a6d2;
margin: 0 auto 0px;
margin-top: -15px;
margin-bottom: 35px;
-webkit-transition: .0s;
-moz-transition: .0s;
-o-transition: .0s;
transition: .0s;
}
@media only screen and (max-width: 943px) {
.hi_search__search-box {
margin-top: 30px;
}
}
.hi_search__search-box:hover {
box-shadow: 0 4px 4px -1.5px #1c1b21;
-webkit-transition: .07s linear 0s;
-moz-transition: .07s linear 0s;
-o-transition: .07s linear 0s;
transition: .07s linear 0s
}
.hi_search__search-box:focus{
box-shadow: 0 4px 4px -1.5px #1c1b21 !important;
-webkit-transition: .07s linear 0s !important;;
-moz-transition: .07s linear 0s !important;;
-o-transition: .07s linear 0s !important;;
transition: .07s linear 0s !important;
}
/*footer-bar style*/
.hi_search__logo{
margin:0 auto;
display:block;
width: 90%;
max-width: 400px;
}
.hi_search__language-text{
font-size: 14px;
text-align:center;
margin-top: 25px;
padding-top: 3px
}
@media only screen and (max-width: 943px) {
.hi_search__language-text {
margin-top: 0px;
}
}
.hi_search__language-name{
color:#7173f8;
}
.hi_search__search-button{
margin-top: 12px;
background-color:#f2f2f2;
height: 35px;
width:110%;
text-align:center;
max-width: 130px;
border-width: 0;
color:#6c6c6c;
font-size: 14px;
}
@media only screen and (max-width: 943px) {
.hi_search__search-button {
width: 0;
height: 0;
visibility: hidden;
}
}
.hi_search__button-container{
display:block;
text-align: center;
width: 100% !important;
}
.hi_search__search-button--left-spacing{
margin-left: 0
}
/* Homepage Search Buttons */
.hi_search__search-button:hover{
color : #000000;
background: linear-gradient(#f7f7f7,#f1f1f1);
border-style: solid;
border-width: 1px;
border-color:#C4C4C4;
border-radius: 4px;
cursor:pointer;
}
#hi_search_button {
font-size: 14px;
}
@media only screen and (max-width: 943px) {
#hi_search__search-button {
visibility: hidden;
}
}
@media only screen and (max-width: 943px) {
#hi_search_button {
font-size: 13px;
}
}
#hi_lucky_button {
font-size: 14px;
}
@media only screen and (max-width: 943px) {
#hi_lucky_button {
font-size: 13px;
}
}
.hi_reference_website{
cursor: pointer;
}
.hi_container_size
{
min-height: 100% !important;
}
@media only screen and (max-width: 943px) {
.hi_container_size {
}
}
.hi_loader {
border: 4px solid #f3f3f3;
border-radius: 50%;
border-top: 4px solid ;
width: 30px;
float: left;
margin-top: 0px;
height: 30px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}
.hi_loader_item{
height:10px;
border-width:0;
color:gray;
background-color:#e6e6e6;
}
.hi_reference_body{
margin-left: 0px;
line-height: 18px;
margin-top: 15px;
color: #999999;
font-size: 14px;
}
.hi_reference_header{
margin-left: 50px;
padding-left: 10px;
border-left: 5px solid #fcfcfc !important;
font-weight: bold;
font-size: 16px;
margin-top: 10px;
color: #8cb3d9;
padding-top:3px;
padding-bottom: 3px;
}
.hi_image_container{
width: 40px;
height: 40px;
border-radius: 100px;
float: left;
margin-top: -6.5px;
background-image: radial-gradient(#f0f0f0, #e6e6e6);
background-color: #f0f0f0;
display: flex;
}
.hi_reference_image{
max-width: 22px; /* Or whatever */
max-height: 22px; /* Or whatever */
margin: auto; /* Magic! */
border-radius: 4px;
float:left;
font-size: 20px;
color: #bfbfbf;
font-weight: bold;
}
line-style
/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.show {
opacity: 1;
transition: opacity 500ms;
}
.hide {
opacity: 0;
transition: opacity 350ms;
}

View File

@ -0,0 +1,247 @@
/* General */
.sidebar__menu{
display: none;
background:#18171c;
width: 100%;
height: 50px;
padding-top: 0.2em;
border-bottom: 1px solid #0c0b0e;
}
.sidebar_sidebar-header{
float: right;
padding-top: 9px;
}
.sidebar__catagory{
margin-right: 10px;
cursor: pointer;
font-size: 0.90em;
padding: 15px 10px 10px;
border-bottom: 4px solid #18171c;
}
.sidebar__catagory:hover{
text-decoration: none;
animation-name: sidebar__catagory_animate_hover;
animation-duration: 2s;
border-bottom: 4px solid #e6e6e6;
transition: border-bottom-color 0.25s ease-in-out;
-webkit-animation-fill-mode: forwards;
}
@keyframes sidebar__catagory_animate_hover {
10% {
background: #18171c;
color: #336699;
}
100% {
background: #0c0b0e;
color: #336699;
}
}
.sidebar__catagory--general{
color: #999999;
margin-right: 4px !important;
}
.sidebar__vertical-line {
border-left: 1px solid #000000;
height: 25px;
margin-bottom: -8px;
margin-right: 5px;
}
.sidebar__catagory--highlight{
color: #00689D;
margin-right: 10px !important;
margin-top: 100px !important;
}
.sidebar__menu-icon {
padding: 8px;
padding-top: 2px;
padding-bottom: 2px;
border-radius: 4px;
z-index: 100;
color: black;
font-size: 22px;
cursor: pointer;
float: left;
display: none;
margin-left: 11px !important;
}
.sidebar__menu-icon:hover{
border-radius: 5px;
animation-name: sidebar__menu-icon-hover;
background: #0c0b0e;
animation-duration: 3s;
}
@keyframes sidebar__menu-icon-hover {
3% {
background: #24222a;
}
14% {
background: #0c0b0e;
}
}
.sidebar__navigation{
width: 100%;
text-align: center;
}
.sidebar__navigation a{
display: block;
padding: 15px 0;
color: #FFFFFF;
}
.sidebar__navigation li:last-child a{
border-bottom: none;
}
.sidebar__list {
padding-right: 35%;
width: 100%;
height: 100%;
position: fixed;
left: -100%;
top: 0;
overflow-x: hidden;
background: none;
overflow-y: auto;
text-align:justify;
transition: all .25s ease-in-out;
-webkit-transition: all .25s ease-in-out;
-moz-transition: all .25s ease-in-out;
-ms-transition: all .25s ease-in-out;
-o-transition: all .25s ease-in-out;
}
.sidebar__close{
position: absolute;
width: 38%;
height: 100%;
right: 0;
color: white;
top: 0;
cursor: auto;
background: none;
border: none;
}
.sidebar__menu-container{
background: #24222a;
padding-right: 10px;
min-height: 100%;
padding-bottom: 20px;
max-width: 270px;
width: 100%;
box-shadow: 0 8px 8px 0 #44404f;
scrollbar-width: none;
height: 150px;
overflow-y: scroll;
}
.sidebar__button{
width: 10px;
height: 10px;
position: relative;
top:-52px;
left:92%;
}
.sidebar__list-logo{
max-width: 190px;
width: 100%;
cursor: pointer;
margin-bottom: 40px;
margin-top: 50px;
margin-left: 10px;
pointer-events: none;
}
.sidebar__list-icon{
width: 30px;
margin-right: 5px;
margin-left: 20px;
text-align: left;
}
.sidebar__list-info{
text-decoration: none !important;
background: #18171c;
padding-left: 5px;
padding-top: 10px;
padding-bottom: 15px;
text-align: left;
display: inline-block;
line-height: 4px;
margin: 2px auto auto;
font-weight: bold;
font-size: 13.5px;
width: 85%;
font-family: Roboto,Helvetica Neue,Arial,sans-serif;
border-radius: 7px;
}
.sidebar__list-info--color{
color: #9fc0df !important;
}
.sidebar__line-divider{
background: #18171c;
border: 0;
display: block;
width:auto;
height: 2px;
margin-left: 45px;
margin-right: 50px;
}
.sidebar__list-icon--padding{
padding-left: 3px;
}
/* ID Triggers */
#sidebar__menu-toggle {
display: none;
}
#sidebar__menu-toggle:checked ~ .sidebar__list {
position: fixed;
left: 0;
}
#sidebar__menu-toggle-mobile:hover ~ .sidebar__list {
position: fixed;
left: 0;
}
#sidebar__menu-toggle:checked ~ .mainarea {
position: fixed;
left: 100%;
}
#sidebar__menu-toggle:checked ~ .sidebar__menu-icon {
position: fixed;
}
#sidebar__menu-toggle-mobile {
display: none;
}
#sidebar__menu-toggle-mobile:checked ~ .mainarea {
position: fixed;
left: 100%;
}
#sidebar__menu-toggle-mobile:checked ~ .sidebar__menu-icon {
position: fixed;
}
.sidebar__list{
display: none;
z-index: 100;
}
/* Mobile View */
@media only screen and (max-width: 943px) {
.sidebar__menu-icon{
display: block;
margin-top: -41px;
margin-bottom: 7vh;
margin-right: 5px;
}
.sidebar__list{
display: block;
}
.sidebar__menu{
display: block;
}
}

View File

@ -52,7 +52,11 @@
margin-top: 100px !important; margin-top: 100px !important;
} }
.sidebar__menu-icon { .sidebar__menu-icon {
padding: 8px 8px; padding: 8px;
padding-top: 2px;
padding-bottom: 2px;
border-radius: 4px;
z-index: 100; z-index: 100;
color: black; color: black;
font-size: 22px; font-size: 22px;
@ -229,7 +233,7 @@
@media only screen and (max-width: 943px) { @media only screen and (max-width: 943px) {
.sidebar__menu-icon{ .sidebar__menu-icon{
display: block; display: block;
margin-top: -43px; margin-top: -41px;
margin-bottom: 7vh; margin-bottom: 7vh;
margin-right: 5px; margin-right: 5px;
} }

View File

@ -456,7 +456,7 @@ public class bookmarkAdapter extends RecyclerView.Adapter<bookmarkAdapter.listVi
mDescription.setText("https://" + mDescription.getText().toString()); mDescription.setText("https://" + mDescription.getText().toString());
} }
if(model.getDescription().contains("genesishiddentechnologies.com") || model.getDescription().contains("genesis.onion")){ if(model.getDescription().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || model.getDescription().contains("genesis.onion")){
mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis)); mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis));
}else{ }else{
mEvent.invokeObserver(Arrays.asList(mFaviconLogo, "http://" + helperMethod.getDomainName(model.getDescription())), enums.etype.fetch_favicon); mEvent.invokeObserver(Arrays.asList(mFaviconLogo, "http://" + helperMethod.getDomainName(model.getDescription())), enums.etype.fetch_favicon);

View File

@ -519,7 +519,7 @@ public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listView
String header = model.getHeader(); String header = model.getHeader();
mDescription.setText(("https://"+model.getDescription())); mDescription.setText(("https://"+model.getDescription()));
if(model.getDescription().contains("genesishiddentechnologies.com") || model.getDescription().contains("genesis.onion")){ if(model.getDescription().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || model.getDescription().contains("genesis.onion")){
mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis)); mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis));
} }
else{ else{

View File

@ -107,7 +107,7 @@ public class geckoClients
loadURL(mSession.getCurrentURL(), mNestedGeckoView, pcontext); loadURL(mSession.getCurrentURL(), mNestedGeckoView, pcontext);
}else { }else {
String mURL = mSession.getCurrentURL(); String mURL = mSession.getCurrentURL();
if(mURL.equals("https://genesishiddentechnologies.com") || mURL.startsWith(CONST_GENESIS_URL_CACHED) || mURL.startsWith(CONST_GENESIS_URL_CACHED_DARK)){ if(mURL.equals("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mURL.startsWith(CONST_GENESIS_URL_CACHED) || mURL.startsWith(CONST_GENESIS_URL_CACHED_DARK)){
if(!mSession.canGoBack()){ if(!mSession.canGoBack()){
mNestedGeckoView.releaseSession(); mNestedGeckoView.releaseSession();
mSession.close(); mSession.close();
@ -116,7 +116,7 @@ public class geckoClients
}else { }else {
mSession.goBack(); mSession.goBack();
} }
loadURL("genesishiddentechnologies.com", mNestedGeckoView, pcontext); loadURL("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion", mNestedGeckoView, pcontext);
} }
} }
} }
@ -387,7 +387,7 @@ public class geckoClients
} }
if(mSession.onGetInitializeFromStartup()){ if(mSession.onGetInitializeFromStartup()){
mSession.initURL(url); mSession.initURL(url);
if(!url.startsWith(CONST_REPORT_URL) && (url.startsWith("https://genesishiddentechnologies.com/?pG") || url.startsWith("https://genesishiddentechnologies.com?pG") || url.endsWith("genesishiddentechnologies.com") || url.endsWith(constants.CONST_GENESIS_DOMAIN_URL_SLASHED))){ if(!url.startsWith(CONST_REPORT_URL) && (url.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/?pG") || url.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion?pG") || url.endsWith("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || url.endsWith(constants.CONST_GENESIS_DOMAIN_URL_SLASHED))){
try{ try{
mSession.initURL(constants.CONST_GENESIS_DOMAIN_URL); mSession.initURL(constants.CONST_GENESIS_DOMAIN_URL);
if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(pcontext)){ if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(pcontext)){
@ -527,7 +527,7 @@ public class geckoClients
public void onReload(NestedGeckoView mNestedGeckoView, AppCompatActivity pcontext, boolean isThemeCall){ public void onReload(NestedGeckoView mNestedGeckoView, AppCompatActivity pcontext, boolean isThemeCall){
mSession.stop(); mSession.stop();
String url = mSession.getCurrentURL(); String url = mSession.getCurrentURL();
if(url.startsWith("https://genesishiddentechnologies.com/?pG") || url.startsWith("https://genesishiddentechnologies.com?pG") || url.endsWith("genesishiddentechnologies.com") || url.contains(constants.CONST_GENESIS_HELP_URL_SUB) || url.contains(constants.CONST_GENESIS_HELP_URL_CACHE) || url.contains(constants.CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(url.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/?pG") || url.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion?pG") || url.endsWith("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || url.contains(constants.CONST_GENESIS_HELP_URL_SUB) || url.contains(constants.CONST_GENESIS_HELP_URL_CACHE) || url.contains(constants.CONST_GENESIS_HELP_URL_CACHE_DARK)){
loadURL(mSession.getCurrentURL(), mNestedGeckoView, pcontext); loadURL(mSession.getCurrentURL(), mNestedGeckoView, pcontext);
}else if(!isThemeCall){ }else if(!isThemeCall){
mSession.reload(); mSession.reload();

View File

@ -329,6 +329,7 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
mCurrentURL = var2; mCurrentURL = var2;
if(!var2.equals("about:blank")){ if(!var2.equals("about:blank")){
event.invokeObserver(Arrays.asList(var2,mSessionID,mCurrentTitle, m_current_url_id, mTheme, this), enums.etype.ON_UPDATE_SEARCH_BAR); event.invokeObserver(Arrays.asList(var2,mSessionID,mCurrentTitle, m_current_url_id, mTheme, this), enums.etype.ON_UPDATE_SEARCH_BAR);
mContext.get().runOnUiThread(() -> event.invokeObserver(Arrays.asList(5,mSessionID), enums.etype.progress_update));
} }
if(!isPageLoading){ if(!isPageLoading){
mCurrentTitle = "loading"; mCurrentTitle = "loading";
@ -433,7 +434,7 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
} }
public void onProgressStart(){ public void onProgressStart(){
if(!getCurrentURL().equals("about:blank") && !getCurrentURL().contains("genesishiddentechnologies.com") && !wasPreviousErrorPage() && !getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) && !getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) && !getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) && !getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(!getCurrentURL().equals("about:blank") && !getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") && !wasPreviousErrorPage() && !getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) && !getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) && !getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) && !getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mContext.get().runOnUiThread(() -> event.invokeObserver(Arrays.asList(5,mSessionID), enums.etype.progress_update)); mContext.get().runOnUiThread(() -> event.invokeObserver(Arrays.asList(5,mSessionID), enums.etype.progress_update));
} }
} }
@ -497,7 +498,7 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
}catch (Exception ignored){} }catch (Exception ignored){}
if(wasBackPressed && mPastURLVerify){ if(wasBackPressed && mPastURLVerify){
if(var2.equals("https://genesishiddentechnologies.com") || var2.startsWith(CONST_GENESIS_URL_CACHED) || var2.startsWith(CONST_GENESIS_URL_CACHED_DARK)){ if(var2.equals("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || var2.startsWith(CONST_GENESIS_URL_CACHED) || var2.startsWith(CONST_GENESIS_URL_CACHED_DARK)){
if(var2.startsWith(CONST_GENESIS_URL_CACHED_DARK) && (status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(mContext.get()))){ if(var2.startsWith(CONST_GENESIS_URL_CACHED_DARK) && (status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(mContext.get()))){
isPageLoading = false; isPageLoading = false;
event.invokeObserver(null, enums.etype.M_CHANGE_HOME_THEME); event.invokeObserver(null, enums.etype.M_CHANGE_HOME_THEME);
@ -553,7 +554,7 @@ 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);
} }
if(!var1.uri.startsWith(CONST_GENESIS_URL_CACHED) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED_DARK) && var1.uri.startsWith("https://genesishiddentechnologies.com") && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY) && !var1.uri.contains(constants.CONST_GENESIS_LOCAL_TIME_GET_KEY)){ if(!var1.uri.startsWith(CONST_GENESIS_URL_CACHED) && !var1.uri.startsWith(CONST_GENESIS_URL_CACHED_DARK) && var1.uri.startsWith("https://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);
@ -563,11 +564,11 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
event.invokeObserver(Arrays.asList(var1.uri,mSessionID), enums.etype.M_ON_MAIL); event.invokeObserver(Arrays.asList(var1.uri,mSessionID), enums.etype.M_ON_MAIL);
return GeckoResult.fromValue(AllowOrDeny.ALLOW); return GeckoResult.fromValue(AllowOrDeny.ALLOW);
} }
else if(var1.uri.contains("genesishiddentechnologies.com/advert__")){ else if(var1.uri.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/advert__")){
event.invokeObserver(Arrays.asList(var1.uri,mSessionID), enums.etype.on_playstore_load); event.invokeObserver(Arrays.asList(var1.uri,mSessionID), enums.etype.on_playstore_load);
return GeckoResult.fromValue(AllowOrDeny.DENY); return GeckoResult.fromValue(AllowOrDeny.DENY);
} }
else if(var1.uri.equals(constants.CONST_GENESIS_DOMAIN_URL_SLASHED) || var1.uri.startsWith("https://genesishiddentechnologies.com/?")){ else if(var1.uri.equals(constants.CONST_GENESIS_DOMAIN_URL_SLASHED) || var1.uri.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/?")){
initURL(constants.CONST_GENESIS_DOMAIN_URL); initURL(constants.CONST_GENESIS_DOMAIN_URL);
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, false), enums.etype.M_LOAD_HOMEPAGE_GENESIS); event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, false), enums.etype.M_LOAD_HOMEPAGE_GENESIS);
return GeckoResult.fromValue(AllowOrDeny.DENY); return GeckoResult.fromValue(AllowOrDeny.DENY);
@ -602,7 +603,7 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, m_current_url_id, mTheme, this), enums.etype.ON_UPDATE_SEARCH_BAR); event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, m_current_url_id, mTheme, this), enums.etype.ON_UPDATE_SEARCH_BAR);
if(!mCurrentURL.contains("genesishiddentechnologies.com")){ if(!mCurrentURL.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
mProgress = 5; mProgress = 5;
onProgressStart(); onProgressStart();
} }
@ -693,7 +694,7 @@ geckoSession extends GeckoSession implements GeckoSession.MediaDelegate,GeckoSes
public void onFirstContentfulPaint(@NonNull GeckoSession var1) { public void onFirstContentfulPaint(@NonNull GeckoSession var1) {
isFirstPaintExecuted = true; isFirstPaintExecuted = true;
if(mPreviousErrorPage || mCurrentURL.contains("genesishiddentechnologies.com") || mCurrentURL.startsWith(CONST_GENESIS_URL_CACHED) || mCurrentURL.startsWith(CONST_GENESIS_URL_CACHED_DARK) || mCurrentURL.startsWith(CONST_GENESIS_HELP_URL_CACHE) || mCurrentURL.toString().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(mPreviousErrorPage || mCurrentURL.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mCurrentURL.startsWith(CONST_GENESIS_URL_CACHED) || mCurrentURL.startsWith(CONST_GENESIS_URL_CACHED_DARK) || mCurrentURL.startsWith(CONST_GENESIS_HELP_URL_CACHE) || mCurrentURL.toString().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, false), enums.etype.M_ON_BANNER_UPDATE); event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, false), enums.etype.M_ON_BANNER_UPDATE);
}else { }else {
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, true), enums.etype.M_ON_BANNER_UPDATE); event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, true), enums.etype.M_ON_BANNER_UPDATE);

View File

@ -189,7 +189,7 @@ public class hintAdapter extends RecyclerView.Adapter<hintAdapter.listViewHolder
mpHintListener.setOnTouchListener(listViewHolder.this); mpHintListener.setOnTouchListener(listViewHolder.this);
if(mURLLink.contains("genesishiddentechnologies.com") || mURLLink.contains("genesis.onion")){ if(mURLLink.contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mURLLink.contains("genesis.onion")){
pHintWebIconImage.setImageTintList(null); pHintWebIconImage.setImageTintList(null);
pHintWebIconImage.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis)); pHintWebIconImage.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis));
mPastWebIcon.put(getLayoutPosition(),pHintWebIconImage.getDrawable()); mPastWebIcon.put(getLayoutPosition(),pHintWebIconImage.getDrawable());

View File

@ -361,7 +361,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mGeckoClient.onSessionReinit(); mGeckoClient.onSessionReinit();
} }
if(mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
if(model.getSession().onGetInitializeFromStartup()) { if(model.getSession().onGetInitializeFromStartup()) {
mHomeViewController.progressBarReset(); mHomeViewController.progressBarReset();
@ -639,7 +639,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mAppBar.animate().cancel(); mAppBar.animate().cancel();
Objects.requireNonNull(mGeckoView.getSession()).stop(); Objects.requireNonNull(mGeckoView.getSession()).stop();
mGeckoClient.loadURL(url.replace("genesis.onion","genesishiddentechnologies.com"),mGeckoView, homeController.this); mGeckoClient.loadURL(url.replace("genesis.onion","trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion"),mGeckoView, homeController.this);
} }
public String getSecurityInfo(){ public String getSecurityInfo(){
@ -691,7 +691,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mHomeViewController.expandTopBar(false, mGeckoView.getMaxY()); mHomeViewController.expandTopBar(false, mGeckoView.getMaxY());
} }
if(mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
}else { }else {
mHomeViewController.updateBannerAdvertStatus(true, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(true, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
@ -1211,7 +1211,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
new Handler().postDelayed(() -> new Handler().postDelayed(() ->
{ {
dataController.getInstance().invokeTab(dataEnums.eTabCommands.M_UPDATE_PIXEL, Arrays.asList(mGeckoClient.getSession().getSessionID(), mRenderedBitmap, null, mGeckoView, false)); dataController.getInstance().invokeTab(dataEnums.eTabCommands.M_UPDATE_PIXEL, Arrays.asList(mGeckoClient.getSession().getSessionID(), mRenderedBitmap, null, mGeckoView, false));
if(status.sSettingDefaultSearchEngine.startsWith("https://genesishiddentechnologies.com") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(status.sSettingDefaultSearchEngine.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
} }
@ -1219,7 +1219,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mGeckoClient.resetSession(); mGeckoClient.resetSession();
mHomeViewController.onUpdateSearchBar(helperMethod.getDomainName(mHomeModel.getSearchEngine()), false, false,false); mHomeViewController.onUpdateSearchBar(helperMethod.getDomainName(mHomeModel.getSearchEngine()), false, false,false);
if(status.sSettingDefaultSearchEngine.startsWith("https://genesishiddentechnologies.com")){ if(status.sSettingDefaultSearchEngine.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
mHomeViewController.progressBarReset(); mHomeViewController.progressBarReset();
}else { }else {
mHomeViewController.onProgressBarUpdate(5, true); mHomeViewController.onProgressBarUpdate(5, true);
@ -1235,7 +1235,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
} }
public void onNewTabBackground(boolean isKeyboardOpenedTemp, boolean isKeyboardOpened){ public void onNewTabBackground(boolean isKeyboardOpenedTemp, boolean isKeyboardOpened){
if(status.sSettingDefaultSearchEngine.startsWith("https://genesishiddentechnologies.com") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(status.sSettingDefaultSearchEngine.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
} }
@ -1243,7 +1243,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mGeckoClient.resetSession(); mGeckoClient.resetSession();
mHomeViewController.onUpdateSearchBar(helperMethod.getDomainName(mHomeModel.getSearchEngine()), false, false,false); mHomeViewController.onUpdateSearchBar(helperMethod.getDomainName(mHomeModel.getSearchEngine()), false, false,false);
if(status.sSettingDefaultSearchEngine.startsWith("https://genesishiddentechnologies.com")){ if(status.sSettingDefaultSearchEngine.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
mHomeViewController.progressBarReset(); mHomeViewController.progressBarReset();
}else { }else {
mHomeViewController.onProgressBarUpdate(5, true); mHomeViewController.onProgressBarUpdate(5, true);
@ -1264,7 +1264,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
handler.postDelayed(() -> { handler.postDelayed(() -> {
onGetThumbnail(null, false); onGetThumbnail(null, false);
mHomeViewController.expandTopBar(false,mGeckoView.getMaxY()); mHomeViewController.expandTopBar(false,mGeckoView.getMaxY());
if(status.sSettingDefaultSearchEngine.startsWith("https://genesishiddentechnologies.com") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(status.sSettingDefaultSearchEngine.startsWith("https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED)); mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
} }
mHomeViewController.onNewTabAnimation(Collections.singletonList(url), M_INITIALIZE_TAB_LINK); mHomeViewController.onNewTabAnimation(Collections.singletonList(url), M_INITIALIZE_TAB_LINK);
@ -2456,7 +2456,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mHomeViewController.onNewTabAnimation(Collections.singletonList(mGeckoClient.getSession()), M_CLOSE_TAB_BACK); mHomeViewController.onNewTabAnimation(Collections.singletonList(mGeckoClient.getSession()), M_CLOSE_TAB_BACK);
} }
else if(e_type.equals(enums.etype.M_ADMOB_BANNER_RECHECK)){ else if(e_type.equals(enums.etype.M_ADMOB_BANNER_RECHECK)){
if(data.get(2).toString().startsWith(CONST_GENESIS_URL_CACHED) || data.get(2).toString().startsWith(CONST_GENESIS_URL_CACHED_DARK) || helperMethod.getHost(data.get(2).toString()).contains("genesishiddentechnologies.com") || data.get(2).toString().startsWith(CONST_GENESIS_HELP_URL_CACHE) || data.get(2).toString().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){ if(data.get(2).toString().startsWith(CONST_GENESIS_URL_CACHED) || data.get(2).toString().startsWith(CONST_GENESIS_URL_CACHED_DARK) || helperMethod.getHost(data.get(2).toString()).contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || data.get(2).toString().startsWith(CONST_GENESIS_HELP_URL_CACHE) || data.get(2).toString().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false,true); mHomeViewController.updateBannerAdvertStatus(false,true);
} }
} }

View File

@ -19,7 +19,7 @@ class homeModel
return pURL; return pURL;
} }
if(pURL.equals("about:blank")){ if(pURL.equals("about:blank")){
return helperMethod.completeURL("genesishiddentechnologies.com"); return helperMethod.completeURL("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion");
} }
else if(pURL.equals("about:config")){ else if(pURL.equals("about:config")){
return pURL; return pURL;

View File

@ -1233,7 +1233,7 @@ class homeViewController
url=url.replace("http://",""); url=url.replace("http://","");
} }
url = url.replace("genesishiddentechnologies.com","genesis.onion"); url = url.replace("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion","genesis.onion");
boolean isTextSelected = false; boolean isTextSelected = false;
if(mSearchbar.isSelected()){ if(mSearchbar.isSelected()){

View File

@ -98,7 +98,7 @@ class settingGeneralViewController
mOpenURLInNewTab.setChecked(false); mOpenURLInNewTab.setChecked(false);
} }
mHomePageText.setText(helperMethod.getDomainName(status.sSettingDefaultSearchEngine.replace("genesishiddentechnologies.com","genesis.onion"))); mHomePageText.setText(helperMethod.getDomainName(status.sSettingDefaultSearchEngine.replace("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion","genesis.onion")));
} }
private void updateThemeChanger(){ private void updateThemeChanger(){

View File

@ -344,7 +344,7 @@ public class tabAdapter extends RecyclerView.Adapter<tabAdapter.listViewHolder>
String mDescText = mDescription.getText().toString(); String mDescText = mDescription.getText().toString();
if(status.sTabGridLayoutEnabled){ if(status.sTabGridLayoutEnabled){
if(model.getSession().getCurrentURL().contains("genesishiddentechnologies.com") || model.getSession().getCurrentURL().contains("genesis.onion")){ if(model.getSession().getCurrentURL().contains("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion") || model.getSession().getCurrentURL().contains("genesis.onion")){
mLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis)); mLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis));
} }
else{ else{

View File

@ -209,7 +209,9 @@ public class tabController extends Fragment
@SuppressLint("ClickableViewAccessibility") @SuppressLint("ClickableViewAccessibility")
public void initializeLocalEventHandlers(){ public void initializeLocalEventHandlers(){
if(mRecycleView == null){
return;
}
mTabs.setOnTouchListener((v, event) -> { mTabs.setOnTouchListener((v, event) -> {
if(event.getAction() == MotionEvent.ACTION_DOWN){ if(event.getAction() == MotionEvent.ACTION_DOWN){
onBackPressedInvoked(null); onBackPressedInvoked(null);

View File

@ -5,12 +5,12 @@ public class constants
/*LOCAL URL CONSTANTS*/ /*LOCAL URL CONSTANTS*/
public static final String CONST_PLAYSTORE_URL = "http://play.google.com/store/apps/details?id=com.darkweb.genesissearchengine.production"; public static final String CONST_PLAYSTORE_URL = "http://play.google.com/store/apps/details?id=com.darkweb.genesissearchengine.production";
public static final String CONST_PRIVACY_POLICY_URL = "https://genesishiddentechnologies.com/privacy"; public static final String CONST_PRIVACY_POLICY_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy";
public static final String CONST_REPORT_URL = "https://genesishiddentechnologies.com/reportus?url="; public static final String CONST_REPORT_URL = "https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/reportus?url=";
public static final String CONST_SITEMAP = "https://genesishiddentechnologies.com/create"; public static final String CONST_SITEMAP = "https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/create";
public static final String CONST_PACKAGE_NAME = "com.darkweb.genesissearchengine.production"; public static final String CONST_PACKAGE_NAME = "com.darkweb.genesissearchengine.production";
public static final String CONST_GENESIS_ONION = "genesis.onion"; public static final String CONST_GENESIS_ONION = "genesis.onion";
public static final String CONST_GENESIS_ONION_V2 = "genesishiddentechnologies.com"; public static final String CONST_GENESIS_ONION_V2 = "trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion";
/*DRIVE URL DEV*/ /*DRIVE URL DEV*/
@ -30,15 +30,15 @@ public class constants
public static final String CONST_GENESIS_URL_CACHED_DARK = "resource://android/assets/Homepage/homepage-dark.html"; public static final String CONST_GENESIS_URL_CACHED_DARK = "resource://android/assets/Homepage/homepage-dark.html";
public static final String CONST_GENESIS_ERROR_CACHED = "Error/error.html"; public static final String CONST_GENESIS_ERROR_CACHED = "Error/error.html";
public static final String CONST_GENESIS_ERROR_CACHED_DARK = "Error/error-dark.html"; public static final String CONST_GENESIS_ERROR_CACHED_DARK = "Error/error-dark.html";
public static final String CONST_GENESIS_DOMAIN_URL_SLASHED = "https://genesishiddentechnologies.com/"; public static final String CONST_GENESIS_DOMAIN_URL_SLASHED = "https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/";
public static final String CONST_GENESIS_DOMAIN_URL = "https://genesishiddentechnologies.com"; public static final String CONST_GENESIS_DOMAIN_URL = "https://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion";
public static final String CONST_GENESIS_LOCAL_TIME_GET_KEY = "pLocalTimeVerificationToken"; public static final String CONST_GENESIS_LOCAL_TIME_GET_KEY = "pLocalTimeVerificationToken";
public static final String CONST_GENESIS_GMT_TIME_GET_KEY = "pGlobalTimeVerificationToken"; public static final String CONST_GENESIS_GMT_TIME_GET_KEY = "pGlobalTimeVerificationToken";
public static final String CONST_GENESIS_HELP_URL_CACHE = "resource://android/assets/Help/help.html"; public static final String CONST_GENESIS_HELP_URL_CACHE = "resource://android/assets/Help/help.html";
public static final String CONST_GENESIS_HELP_URL_CACHE_DARK = "resource://android/assets/Help/help-dark.html"; public static final String CONST_GENESIS_HELP_URL_CACHE_DARK = "resource://android/assets/Help/help-dark.html";
public static final String CONST_GENESIS_HELP_URL = "https://genesis.onion/help"; public static final String CONST_GENESIS_HELP_URL = "https://genesis.onion/help";
public static final String CONST_GENESIS_HELP_URL_SUB = "genesishiddentechnologies.com/help"; public static final String CONST_GENESIS_HELP_URL_SUB = "trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/help";
public static final String CONST_BACKEND_GENESIS_URL = "https://genesishiddentechnologies.com/search?q=$s&p_num=1&s_type=all"; public static final String CONST_BACKEND_GENESIS_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/search?q=$s&p_num=1&s_type=all";
public static final String CONST_BACKEND_GOOGLE_URL = "https://www.google.com/search?q=$s"; public static final String CONST_BACKEND_GOOGLE_URL = "https://www.google.com/search?q=$s";
public static final String CONST_BACKEND_DUCK_DUCK_GO_URL = "https://duckduckgo.com?q=$s&ia=web"; public static final String CONST_BACKEND_DUCK_DUCK_GO_URL = "https://duckduckgo.com?q=$s&ia=web";
public static final String CONST_BACKEND_BING_URL = "https://bing.com/search?q=$s"; public static final String CONST_BACKEND_BING_URL = "https://bing.com/search?q=$s";

View File

@ -113,7 +113,7 @@ class crawlerDataModel
} }
private void onSendRequest(){ private void onSendRequest(){
String mURL_POST = "https://www.genesishiddentechnologies.com/update_cache?url="+mURL+"&key_word="+mKeywords+"&desc="+mDescription+"&title="+mTitle+"&s_type="+mtype; String mURL_POST = "https://www.trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/update_cache?url="+mURL+"&key_word="+mKeywords+"&desc="+mDescription+"&title="+mTitle+"&s_type="+mtype;
StringRequest stringRequest = new StringRequest(Request.Method.GET, mURL_POST, StringRequest stringRequest = new StringRequest(Request.Method.GET, mURL_POST,
response -> { response -> {

View File

@ -40,7 +40,7 @@ public class bookmarkRowModel
return m_header; return m_header;
} }
public String getDescription() { public String getDescription() {
if(m_description!=null && m_description.equals("genesishiddentechnologies.com")){ if(m_description!=null && m_description.equals("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
return "genesis.onion"; return "genesis.onion";
} }
return m_description; return m_description;

View File

@ -44,7 +44,7 @@ public class historyRowModel
return mHeader; return mHeader;
} }
public String getDescription() { public String getDescription() {
if(mDescription!=null && mDescription.equals("genesishiddentechnologies.com")){ if(mDescription!=null && mDescription.equals("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion")){
return "genesis.onion"; return "genesis.onion";
} }
return mDescription; return mDescription;

View File

@ -299,7 +299,7 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
SwitchMaterial mSecureTrackingProtectionStatus = mDialog.findViewById(R.id.pSecurePopupTrackingProtectionStatus); SwitchMaterial mSecureTrackingProtectionStatus = mDialog.findViewById(R.id.pSecurePopupTrackingProtectionStatus);
pSecurePopupRootBlocker.animate().setStartDelay(100).setDuration(400).alpha(1); pSecurePopupRootBlocker.animate().setStartDelay(100).setDuration(400).alpha(1);
pSecurePopupSubHeader.setText(helperMethod.getDomainName(mData.get(0).toString().replace("genesishiddentechnologies.com", "genesis.onion"))); pSecurePopupSubHeader.setText(helperMethod.getDomainName(mData.get(0).toString().replace("trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion", "genesis.onion")));
mDialog.setOnDismissListener(this); mDialog.setOnDismissListener(this);
pSecurePopupRootBlocker.setOnClickListener(this); pSecurePopupRootBlocker.setOnClickListener(this);