CodeWalrus

General => General Help & Troubleshooting => Topic started by: Hayleia on October 23, 2016, 07:37:49 am

Title: Specific Chrome setup wanted
Post by: Hayleia on October 23, 2016, 07:37:49 am
Well well, I have been a Firefox user for ages but really, the more updates it gets, the slower it becomes. And now it's so ridiculously slow that I only had to try Chrome (or Chromium actually, but whatever) for 5 minutes to be convinced that a switch wouldn't be a loss (for real, booting Firefox takes 5 seconds where Chrome needs 0, and closing Firefox takes 1 second where Chrome needs 0, and you've got the same speed difference while browsing...).

However, I was used to my Firefox setup, so I'd like to have something as close to it as possible, and would like to know if it is possible with Chrome, and if so, how.

So is there a way to have these requirements fullfilled ?


Well, I have other things that I'd want but these ones are the main ones :P

And it seems like the only way to fulfill the first one is to get in incognito mode, but for some reason it then makes the second one impossible (and don't tell me "of course, incognito doesn't remember your history so it's obvious that you can't re-open a tab" because if that was the case, the "back" button would do nothing). And the only extensions I found to get a "re-open" feature were ones that re-instated a public history so it's not what I want either...

Any ideas?
Title: Re: Specific Chrome setup wanted
Post by: gameblabla on October 23, 2016, 08:26:08 am
Quote from: Hayleia on October 23, 2016, 07:37:49 am
No user history of any kind (I mean, I do not have a dropdown menu in "settings" that shows what I browsed, I do not have purple links where I already clicked, but obviously Chrome keeps an internal history so the "back" function still works)

I was using Opera for a while and i had the same issue.
Chrome does not even allow you to disable the history or clear it on exit lol. (big data very much)
In the end, the only workaround was to make my own extension.

Have a background.js file that looks like this :
chrome.browsingData.remove({ "since": 0 },
{
"appcache": true,
"cache": true,
"cookies": false,
"downloads": false,
"fileSystems": false,
"formData": false,
"history": true,
"indexedDB": false,
"localStorage": false,
"serverBoundCertificates": false,
"pluginData": false,
"passwords": false,
"webSQL": false
});
function onDeleteAll() {}
chrome.history.onVisited.addListener(function(result) {
chrome.history.deleteAll(onDeleteAll);
});


Then your a manifest.json file like this :
{
  "manifest_version": 2,

  "name": "my_extension",
  "description": "onch onch i screw google really hard",
  "version": "1.0",
  "icons": {
          "128": "128.png" },
  "background": { "scripts": ["background.js"]},
  "permissions": ["tabs", "browsingData","privacy"],
  "browser_action": {
    "default_icon": "128.png",
    "default_title": "my_extension"
  }
}

Make sure to add an icon to it and then add it to Google Chrome.
(i know Opera can package it for you but i don't know if chrome can do that)

QuoteCan re-open a tab after I closed it (mostly by mistake)

???
(seriously i don't get it)

As for Firefox being really slow, you should try to install noscript, cookie controller and ublock origin on it.
Without them, i indeed find firefox very slow... but with those extensions, it's much more bearable.
You could also use Pale Moon (with its own lightweight ui).
Title: Re: Specific Chrome setup wanted
Post by: Streetwalrus on October 23, 2016, 08:46:39 am
You can just reopen a closed tab with ctrl+shift+t like in any browser. :P
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 23, 2016, 09:05:15 am
Quote from: Streetwalrus on October 23, 2016, 08:46:39 am
You can just reopen a closed tab with ctrl+shift+t like in any browser. :P
I never said the contrary. I said that this requirement was fulfilled when not in incognito mode, but incognito mode is required to fulfill the other requirement.

@gameblabla, ok thanks, I'll check out how to make an extension and where to put these files (not today nor tomorrow though -.-) and see if it works :)
Title: Re: Specific Chrome setup wanted
Post by: Streetwalrus on October 23, 2016, 02:03:38 pm
Oh indeed, I rarely use incognito mode, that's why I've never noticed. :P
Title: Re: Specific Chrome setup wanted
Post by: DJ Omnimaga on October 23, 2016, 04:24:16 pm
Quote from: gameblabla on October 23, 2016, 08:26:08 am
Quote from: Hayleia on October 23, 2016, 07:37:49 am
No user history of any kind (I mean, I do not have a dropdown menu in "settings" that shows what I browsed, I do not have purple links where I already clicked, but obviously Chrome keeps an internal history so the "back" function still works)

I was using Opera for a while and i had the same issue.
Erm actually Opera has history. Just click CTRL+H and you're set.
Title: Re: Specific Chrome setup wanted
Post by: Streetwalrus on October 23, 2016, 04:25:48 pm
He wants to disable history.
Title: Re: Specific Chrome setup wanted
Post by: DJ Omnimaga on October 23, 2016, 04:52:58 pm
Oh I thought the other way around, my bad
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 25, 2016, 09:55:28 am
@gameblabla, I tried your extension and it didn't "fix" the purple link "problem". I mean, that for example, when googling stuff then clicking the first link then going back, the first link (who was blue before clicking) is now purple to indicate that I already clicked it (which I don't want) :(
Title: Re: Specific Chrome setup wanted
Post by: aeTIos on October 25, 2016, 11:49:40 am
I wonder if you can do that with a userstyle?
Title: Re: Specific Chrome setup wanted
Post by: p2 on October 25, 2016, 12:53:42 pm
If its only about the color then I can tell you I'mm 100% positive there was settings for the color of visited links at least for firefox (there it was in the about:config).
So there should be such color settings somewhere in chrome, too :)
just set the "visited links" to the same color as normal links ^^
Title: Re: Specific Chrome setup wanted
Post by: gameblabla on October 25, 2016, 01:36:18 pm
Quote from: Hayleia on October 25, 2016, 09:55:28 am
@gameblabla, I tried your extension and it didn't "fix" the purple link "problem". I mean, that for example, when googling stuff then clicking the first link then going back, the first link (who was blue before clicking) is now purple to indicate that I already clicked it (which I don't want) :(

Yeah, unforunely it used to work but now it doesn't...
I need to change my script but it is really hard to understand the logic behind events....
I can make it work by having you click on the icon to remove the history tho.
It sucks.

It sucks monkey f***
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 25, 2016, 04:55:17 pm
Quote from: p2 on October 25, 2016, 12:53:42 pm
If its only about the color then I can tell you I'mm 100% positive there was settings for the color of visited links at least for firefox (there it was in the about:config).
So there should be such color settings somewhere in chrome, too :)
just set the "visited links" to the same color as normal links ^^
Well the logic "it's in Firefox so it should be in Chrome" doesn't work since the reason why I want that behaviour in Chrome is that I had it exactly in Firefox, and I can't replicate it in Chrome :P

And I really don't get why it doesn't allow me to re-open closed tabs in incognito. It makes 0 sense...
Title: Re: Specific Chrome setup wanted
Post by: p2 on October 25, 2016, 06:53:55 pm
incognito mode creates no history data at all. It's not like it deletes all data at the end of the session ;)
*Wouldn't be very much of incognito otherwise if you imagine your browser suddenly crashing before deleting the browser history... <_<

also I guess I can help you with that :)
Quote from: Stolen from some random forumC:\Users\YOUR_USER_NAME\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Simply open the file with Notepad, and paste the following line of code:
A:visited { color: red ! important }
Save the file and you're done.
Keep in mind this is for custom styles, hence the name "Custom.css".  So if this is the first time you're modifying this file, it's normal for this file to be blank (no existing lines of code) when you first open it for editing.
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 25, 2016, 07:21:24 pm
Quote from: p2 on October 25, 2016, 06:53:55 pm
incognito mode creates no history data at all. It's not like it deletes all data at the end of the session ;)
*Wouldn't be very much of incognito otherwise if you imagine your browser suddenly crashing before deleting the browser history... <_<

I see you haven't read my first post entirely :P
If it doesn't create any history data, how do you explain that when I click a link then press the back button, I am back to the page where I was before clicking the link?...

Quote from: p2 on October 25, 2016, 06:53:55 pm
also I guess I can help you with that :)
Quote from: Stolen from some random forumC:\Users\YOUR_USER_NAME\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Simply open the file with Notepad, and paste the following line of code:
A:visited { color: red ! important }
Save the file and you're done.
Keep in mind this is for custom styles, hence the name "Custom.css".  So if this is the first time you're modifying this file, it's normal for this file to be blank (no existing lines of code) when you first open it for editing.

Lol at Windows paths, I'm on Linux :P

I'm pretty sure the easiest solution is to come back to Firefox -.-
I'd just have to find a way to keep it running in the background so that it doesn't take 5 seconds to boot.
Title: Re: Specific Chrome setup wanted
Post by: DJ Omnimaga on October 25, 2016, 07:43:20 pm
5 seconds is nothing compared to 60 a few years ago, though O.O
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 25, 2016, 07:49:31 pm
Yeah but 0 seconds is a better nothing :P

Also, in case c4ooo didn't see:
Quote
Hayleia   c4ooo, if you think I want "no history" because I'm paranoid, that's not the case at all
Hayleia   I don't care one bit if Chrome (or whatever) records my data
Hayleia   all I want is that everytime I do something for the second time, it's the same as the first time
Hayleia   so that's why I don't want purple links for example, because they were not purple the first time
Title: Re: Specific Chrome setup wanted
Post by: WholeWheatBagels on October 25, 2016, 09:58:03 pm
You might be able to get some similar functionality from this Chrome flag (chrome://flags/#bypass-app-banner-engagement-checks) but it sounds like a cookie problem more than a history thing for first time popups or whatever.
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 26, 2016, 03:50:35 pm
Heh, I checked my "Firefox vs Chrome.txt" file on my PC to remind me of why I was switching to Chrome, and when I saw that Firefox was winning 6-1 (the only advantage of Chrome being speed), I switched back to Firefox, so everyone can just forget about this topic :P

And after removing some unnecessary extensions, Firefox now boots in 2 seconds. Which is still worse than 0 but better than 5. And while navigating, yeah, it's still slower than Chrome but just a bit, and the 6 lines of advantages perfectly justify that one drawback...
Title: Re: Specific Chrome setup wanted
Post by: aeTIos on October 26, 2016, 03:58:10 pm
You're honestly a huge meme :D Have fun on fx :P
Title: Re: Specific Chrome setup wanted
Post by: p2 on October 26, 2016, 04:07:01 pm
glad your problem is more or less "solved" now ^^
are you willing to share the list with us? It might be relly interesting :)
Title: Re: Specific Chrome setup wanted
Post by: gameblabla on October 26, 2016, 04:49:31 pm
Quote from: Hayleia on October 26, 2016, 03:50:35 pm
And after removing some unnecessary extensions, Firefox now boots in 2 seconds. Which is still worse than 0 but better than 5. And while navigating, yeah, it's still slower than Chrome but just a bit, and the 6 lines of advantages perfectly justify that one drawback...

lol, you did not told us that !

But if you're crazy enough, seriously try building your own optimised build of Firefox like so :
./configure  CFLAGS+="-march=native -Ofast" CXXFLAGS+="-march=native -Ofast" LDFLAGS="-flto"
Gentoo people said making your own build signicantly makes Firefox boot up faster.
(even more so if you disable some dependencies at configure time)
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on October 27, 2016, 09:39:09 am
Quote from: aeTIos on October 26, 2016, 03:58:10 pm
You're honestly a huge meme :D Have fun on fx :P
Not sure if I should take that nicely :P

Quote from: p2 on October 26, 2016, 04:07:01 pm
glad your problem is more or less "solved" now ^^
are you willing to share the list with us? It might be relly interesting :)
Well, now that I deleted them, I don't have them on the list :P
But I remember that one of them was VideoDownloadHelper. I stopped using it since it stopped working with Youtube, so there was no reason to keep it. And there was also TreeStyleTabs, which was funny and stuff, but not really necessary since I don't often have enough tabs to justify grouping them.

Quote from: gameblabla on October 26, 2016, 04:49:31 pm
lol, you did not told us that !
Well, now it sometimes boots in 2 seconds, sometimes in 3 and sometimes in 5 ???
Whatever. I actually can't count and Firefox wins 7-1, not 6-1 so I still stick with Firefox :P

Quote from: gameblabla on October 26, 2016, 04:49:31 pm
But if you're crazy enough, seriously try building your own optimised build of Firefox like so :
./configure  CFLAGS+="-march=native -Ofast" CXXFLAGS+="-march=native -Ofast" LDFLAGS="-flto"
Gentoo people said making your own build signicantly makes Firefox boot up faster.
(even more so if you disable some dependencies at configure time)
I may try that whenever I have 3 weeks of free time to compile it :P
Though I guess I'll have to compile it myself for every update?
Title: Re: Specific Chrome setup wanted
Post by: Streetwalrus on October 27, 2016, 09:41:52 am
Quote from: gameblabla on October 26, 2016, 04:49:31 pm
But if you're crazy enough, seriously try building your own optimised build of Firefox like so :
./configure  CFLAGS+="-march=native -Ofast" CXXFLAGS+="-march=native -Ofast" LDFLAGS="-flto"
Gentoo people said making your own build signicantly makes Firefox boot up faster.
(even more so if you disable some dependencies at configure time)

There was something about compiling it with a modified version of sqlite as well. https://bbs.archlinux.org/viewtopic.php?pid=933260#p933260
Title: Re: Specific Chrome setup wanted
Post by: Hayleia on November 04, 2016, 09:17:11 pm
Who wants disgusting stuff? I do.
Use the following bash script at startup to basically run a Firefox instance in the background, allowing all future windows (except if of a new instance) to open in 0 seconds.
Yes this is disgusting, I warned you. Even the script still has echoes that no one reads lol. I don't care, at least Firefox has a solution to its problem unlike Chrome.

waitandhideff () {
i="0"
while [ $i -lt 1000 ]; do
i=$[$i+1]
WINDOW=$(xdotool search --classname Navigator)
if [ -z "$WINDOW" ];then
echo "nothing"
else
sleep 1
xdotool windowunmap $WINDOW
break
fi
done
}
waitandhideff &
firefox &
Title: Re: Specific Chrome setup wanted
Post by: aeTIos on November 04, 2016, 09:26:03 pm
absolutely disgusting, but a nice hack ;D
Title: Re: Specific Chrome setup wanted
Post by: Streetwalrus on November 04, 2016, 09:28:37 pm
Nice one, I actually auto start my browser and keep it open all the time so I've never really cared about startup times.
Title: Re: Specific Chrome setup wanted
Post by: p2 on November 05, 2016, 12:04:25 pm
I can't believe how much work you put in these 2 seconds of startup time ;D They must really annoy you xD
But good work Hayleia  :thumbsup: