Enhancer for YouTube

Friday, May 5th, 2023 02:31 am
darkoshi: (Default)
Those particular annoying ads on YouTube finally convinced me to install a browser add-on that lets me blocks all the ads. It also lets me disable video autoplay without needing to be being logged in, and has other nice features too.

Enhancer for YouTube
darkoshi: (Default)
If you have the ublock plugin:
https://github.com/aelipsi/WordleLowerCase/blob/main/WordleLowerCase.txt

Otherwise, if your browser lets you set a custom stylesheet*, the following works for making the letters in the top game section lowercase:

div[class^="Tile-module_tile__"]
{
	text-transform: lowercase !important;
}


This works for making the letters in the bottom keyboard lowercase:

button[class^="Key-module_key__"]
{
	text-transform: lowercase !important;
}



*If using Firefox, you can create a "userContent.css" file with the above content.
Then navigate to your Firefox profile folder. If it doesn't already has a "chrome" subfolder, create that folder.
Place the userContent.css file in the "chrome" folder.
Then open the about:config page and bring up the "toolkit.legacyUserProfileCustomizations.stylesheets" setting. If it is false, change it to true.
Close and re-open the browser.
darkoshi: (Default)
I just noticed that the original Wordle URL has been redirecting to a New York Times page for the last few days. Which is fine, except that it's not updating my stats anymore. Every day I open it, it has the same starting stats ("24 played", etc.). After playing that day's game, if I close and reopen the browser and return to the page (via the original URL), it shows the gameboard like I didn't already play it, and the stats are reverted again.

This is the original URL I'm using:
https://www.powerlanguage.co.uk/wordle/

That page redirects to the below nytimes URL, passing my stats as parameters:

https://www.nytimes.com/games/wordle?data=[ my stats and preferences data ]

That page then redirects to:

https://www.nytimes.com/games/wordle/index.html?data= [ same stats parameters as above ]

The same stats parameters are passed each time (except for the first "time" value).

I can't tell if the problem is due to my browser or cookie settings.
I've tried adding rules to allow powerlanguage.co.uk stuff on nytimes.com and vice versa. But my stats still don't save.

Are the Stats still being updated correctly for anyone else?

On Twitter other people say they're having trouble like me, but I don't know if we are the minority or not:
https://twitter.com/NYTimesWordplay

Update:
See my comment below. I had to set a browser exception for nytimes.com to let it store cookies. Using the uMatrix plugin, I sometimes forget that I have to allow cookies for a site in both places if I want the cookies to be saved across sessions.
darkoshi: (Default)
For about the last month, I've had an internet issue where the initial "connecting to [whatever URL]" step randomly takes a long time. Randomly as in not always, and not always the same sites. When I try to make it happen, it doesn't happen. The delay isn't always the same length. But it happens many times a day. Once past that initial delay, the page then loads quickly.

It has happened both at Qiao's house and my house; he's got a different ISP than me.
It has happened both on my personal laptop and work laptop, though I think I only noticed it a few times on the work laptop. Most of the time, the work laptop is connected to a VPN; it may have only happened when I wasn't on the VPN, but I'm not sure.
It has happened in various browsers (Waterfox, Firefox, not sure about the others)
Speedtest.net results show nothing unusual.

Do any of you know what could cause this or how to fix it?

Based on what I read on this page, I already tried turning off DNS over HTTPS but that did not fix the problem, so I re-enabled it:
https://www.reddit.com/r/waterfox/comments/qoc9ty/every_new_website_i_visit_in_a_new_session_takes/

... Found another post which might be related to my problem:
https://www.reddit.com/r/waterfox/comments/r76qg8/httpsgoogleapiscom_weird_slow_connection_issue/
darkoshi: (Default)
I've been streaming the show "A Million Little Things" on the abc.com website.
I used the MS-Edge browser for it at first. But there was a problem - except for the ads at the start of the show, the ads did not play. At the ad breaks, the playback simply froze and didn't continue even if I waited for several minutes. I got past the problem a few times by reloading the page but later even doing that didn't help.

So that day I switched to using the Chrome browser. It had some problems too, but at least the playback didn't freeze and I was able to watch the show.

But today while watching another episode, my Chrome browser froze up at the ads like MS-Edge did last time. Reloading the page multiple times didn't help.

So then I tried playing the show in a Chrome incognito window. That way, the ads played fine and I was able to finish watching the show. So hopefully this method will work next time too.
darkoshi: (Default)
I'm in a standoff with my browser: I refuse to let it update as long as it keeps nagging me to update, and as long as I can't find a way to make it stop nagging.

It used to be when an update was available, it would pop up the message, and if I didn't choose to install it right away, it would remind me at a reasonable frequency, no more often than once a day. Now it is doing it multiple times a day. Suffice to say, I became very irritated and have dug my heels in deeper than ever. I don't want to completely disable updates, but... I haven't found any other solution so far. Maybe I'll need to downgrade to an older version. ::SNEER::
Bah.

.

One of my phones popped up a message saying that a COVID-19 Contact Tracing app was available (the first such message I recall having gotten). But it was an app for the state of North Carolina. I live in South Carolina.

.

Yesterday, my mom gave me leeks and a bunch of cilantro which she'd gotten from a friend.

I cut up and cooked the top dark green parts of the leeks separately from the rest. (I had read a webpage which said this part of the plant is inedible, but that is untrue. Perhaps on some plants the leaves are too tough to eat, but on these they certainly weren't.)

I stir-fried both parts in olive oil along with the cilantro. With the leek tops, I stirred in balsamic vinegar. It turned out quite good.

In the other pot, I added fresh ginger, a can of black-eye peas, and a package of potato gnocchi (after boiling it). It turned out quite good too.

.

Today was like a warm spring day. Upper 70s. Flowers are starting to bloom. Yellow flowers grew from the bulbs which I had thought were small onions.

.

webpage tracking

Wednesday, September 30th, 2020 02:12 am
darkoshi: (Default)
I was reading this page*:
https://gen.medium.com/i-lived-through-collapse-america-is-already-there-ba1e4b54c5fc

Every once in a while my browser showed "Transferring data from gen.medium.com". It seems that my scrolling the page a certain amount or to a certain location triggers it.

The Web Console shows it sending a message to this URL: https://gen.medium.com/_/batch
The Params include: key: post.streamScrolled

So I searched on "streamScrolled", and found only a few mentions:

https://www.reddit.com/r/netsec/comments/7qe4kj/browser_as_botnet_the_coming_war_on_your_web/

PedanticPistachio
I couldn't help but to run the communications through burp while reading this blog. Only found that medium was tracking my every move (certain information redacted just to be safe):

[{"type":"e","key":"post.streamScrolled","data":{"postIds":["redacted"],"collectionIds":["redacted"],"tops":[211],"bottoms":[26992],"areFullPosts":[true],"viewStartedAt":1516049551112,"scrollTop":6072,"scrollBottom":6806,"scrollableHeight":28133,"loggedAt":redacted,"sources":["post_page"],"timeDiff":13041.199999999953,"userId":"redacted","referrer":"https://www.reddit.com/r/netsec/","location":"https://medium.freecodecamp.org/browser-as-botnet-or-the-coming-war-on-your-web-browser-be920c4f718","browserWidth":1536,"deviceId":"redacted"},"userId":"redacted","timestamp":1516050235600,"eventId":"redacted"}]
l


https://news.ycombinator.com/item?id=15696596

Couldn't agree more. If you look at what's happening in the network tab of the developer tools, you'll see it's doing a lot more than providing just a static blog page.

Instead, every x seconds it executes another POST request with pretty much all the details they can gather (scroll from top, scrollable height, referrer etc.). As soon as you start moving your cursor, the new requests start adding up very quickly, with lots of new params such as "experimentName: readers.experimentShareWidget" or "key: post.streamScrolled".

It really is collecting every single interaction with this page. As it's provided by Medium I'm sure it's part of their data collection program.


Medium.com isn't the only site I've had that kind of thing happen on. It may even happen on Dreamwidth sometimes, possibly related to embedded YouTube videos, if I'm remembering right.

It annoys me because while it's showing those "Transferring data" or "Connecting to", etc., messages, it prevents me being able to see links' URLs by hovering over them.

So I'd like to find a way to block webpages from sending extra messages that aren't initiated by me clicking on something. But I don't have time right now to research it further.


*This statement on that page is rather sobering, as is the rest and the other linked-to posts:
In the last three months America has lost more people than Sri Lanka lost in 30 years of civil war.
darkoshi: (Default)
I've been using Waterfox Classic, which allows old pre-Quantum Firefox add-ons to work.
Today I finally tried out Waterfox Current, which doesn't support those old add-ons and is based more on the current version of Firefox.

With Waterfox Current, my prior methods of overriding the new tab page to display a local HTML file did not work. I tried out several other ideas*, which did not work either.

I finally found a way to make it work, using the js/cfg file method described on these pages:
https://support.mozilla.org/en-US/questions/1210576
https://www.reddit.com/r/FirefoxCSS/comments/elqmwf/new_tab_homepage_local_file_broken_userchromecss/

According to the 2nd page, that method worked for Firefox v72.
I had noticed a while back that the new tab override wasn't working for my current-version Firefox browser either, but I don't use that browser much anyway.
Now today when I try using the same 2 files that work for me in Waterfox Current, with Firefox 77.0.1, they still don't work there! Fie! Fie! Fie on you, Firefox!


*You can use an add-on to have new tabs open your home page, but it doesn't work when the home page is a local file.

You can use an add-on to open a specific website (but not a local file**) in new tabs.

**Unless the add-on copies the local file to the add-on's storage space, in which case you need to reload it in the add-on every time you update the file. Having a (static) local file which the add-on loads to its storage space redirect to another (dynamic) local file does not work.

You can use an add-on to redirect from one URL to another. But redirecting the new tabs from a specific website to a local file does not work; that gives a Security Error.
darkoshi: (Default)
I opened https://pinafore.social and entered my im-in.space mastodon instance. I was already logged into the latter. It popped up a verification window, asking to allow the Pinafore web app access to my im-in.space account. I allowed it. I updated some of the settings on the Pinafore site.

Then I closed my browser and reopened it (my browser is set to delete cookies when the browser is closed, except for sites I've added as exceptions). That first time, Pinafore lost my prior settings. So I added an exception for the site and tried again.

Then when I closed and reopened my browser, the Pinafore site kept my settings. But my browser shows no cookies saved for the pinafore.social website.

So I removed the cookie exception for pinafore.social. But now when I close and reopen my browser, the Pinafore site still keeps me logged in and keeps my settings.

If I open the pinafore site from a different browser, it doesn't have my settings. So it has to be specific to the browser.

The About Pinafore page says:
Pinafore does not store any personal information on its servers, including but not limited to names, email addresses, IP addresses, posts, and photos.

Pinafore is a static site. All data is stored locally in your browser and shared with the fediverse instance(s) you connect to.


How can it be saving my settings, if it is not using cookies?

..

I think I've figured it out. It saves the settings in "site data".

The latest Waterfox version doesn't yet display site data on the cookies window, so that is one reason why I wasn't seeing it. Clearing "Cache" and "Offline Website Data" didn't clear the site settings. Yet, clearing all "Cookies" did.

The latest Firefox version seems to have some quirks as to when it does and doesn't show the site data in the "Manage Cookies and Site Data" window. I haven't figured those quirks out. But it seems to be related to when the site data was saved (before or after changing certain settings), and the "Delete cookies and site data when Firefox is closed" setting, and maybe also my uMatrix settings. That's the other reason I wasn't seeing it. But for now it is being shown.

For the site settings to be saved when the browser is set to delete cookies upon exiting, one needs to have saved an exception for the site.
darkoshi: (Default)
Lately whenever I open a link to a WashingtonPost.com article, I've been getting a sidebar message telling me to disable my ad blocker, with much of the page covered by the sidebar and scrolling disabled. Till now, I'd been closing the articles; not wanting to read them that badly.

But today, I started playing around with my uMatrix settings, trying to find out which domains I'd need to allow Javascript for, to get the message to go away. I'd be ok with allowing some advertising domains, if the ads weren't intrusive. I had to keep on enabling more and more domains, until the page finally worked. Then I started over from scratch, allowing only the last domain I had enabled, but that didn't work. Sigh. I started to wonder again if it was really worth it; I can live without WaPo articles.

I did some web searches to see if I could find info on which domains needed to be enabled. I didn't find that answer, but from what I read, WaPo has been doing this kind of ad-blocker blocking for several years already. I haven't had a problem reading WaPo articles until recently. So then it occurred to me that maybe to fix the problem, I need to *disable* Javascript for the WaPo domain. I did that, and ta-da, no more sidebar message and no more problem reading the articles.

The problem was because I had changed my global uMatrix settings a while back to allow Javascript for the main website's domain by default.

I feel somewhat bad about blocking ads, as I understand that websites need a source of revenue. My main reason for blocking JS and ads is to make it less likely to be exposed to malware. I remember some instances where ads were responsible for loading malware onto people's machines, even though I don't remember if that actually happened to me from any ads. I think my antivirus caught it before I was infected. My other reasons are because of how much slower enabling all Javascript makes some pages, and because I don't like it when audio and videos auto-play.

I also sometimes feel just a tiny slight bit wistful, wondering if maybe I had Javascript and cookies and all that enabled all the time, and if Google and everyone else had built up good profiles of me, maybe I'd be seeing interesting, useful and relevant ads that I'd want to click on.

I've bought subscriptions to some sites, and given others donations, to help them out financially. But that's a lot harder sometimes than it ought to be. I wrote a rant-post this morning about a problem with TheAtlantic site; this time it wasn't letting me update my credit card expiration date, even though their system had sent me an email asking me to. But I made that post private, because ::meh::.
darkoshi: (Default)
Over the last few months, I've been randomly using the latest version of Firefox for some browsing, and Firefox ESR (without the Quantum changes, with the Status-4-Evar add-on for displaying the status bar) for the rest.

My main issue with Firefox Quantum remains the lack of the status bar. If there were no other choice, I could live without the status bar, but I really prefer having it. Once the ESR version of Firefox gets updated to Quantum in the next few months, using the ESR will no longer be a work-around for that.

So yesterday I installed Waterfox v56, which supports both XUL and WebExtensions. I've got Status-4-Evar and various Quantum-level add-ons installed, and so far everything has been working fine. I'm not sure what the future will hold for Waterfox, but at the moment it has everything I want.

I haven't had any further issues with the uMatrix add-on, and I really like it, especially being able to easily set site-specific JavaScript rules. That is my main reason for switching from NoScript to uMatrix.

..

I occasionally use an HDMI cable to stream video from my laptop on the big TV screen. I recently discovered that by using "extended display" mode on the laptop, with the TV set up as the 2nd screen, I can stream video to the TV, while at the same time doing other stuff on the laptop screen.

Yesterday, I found out that Windows 8.1+ supports MiraCast, for mirroring the computer display to another screen using wi-fi. So I may even be able to stream video wirelessly, without the HDMI cable. My TV doesn't support MiraCast without a dongle, but Qiao's may.

uMatrix difficulty

Saturday, January 20th, 2018 12:40 am
darkoshi: (Default)
I've been trying to learn how to use the uMatrix add-on in Firefox with scripts blocked by default for most pages.

For the most part, I think I understand how it works now, and I can get most pages to display ok. But it seems more frustrating than NoScript ever was for me.

A few days ago the links on a certain page weren't working, no matter what I allowed in the uMatrix grid. Even after disabling all matrix filtering, the links still didn't work. But in my other browser without uMatrix, they did work.

I found this info: About "the page is still broken after I created all necessary rules". It mentions that you may need to press the Shift button while reloading the page, to get it to work. I tried that, and it fixed that particular page.

Today I'm having a problem on this page: The 29 Stages Of A Twitterstorm In 2018.
No matter what I do, including shift-reload, including with matrix filtering disabled for both the buzzfeed domain *and* the global scope, the video in #18 does not display. In my other browser with NoScript, I only have to allow scripts for a few domains, and the video displays ok. The last domain I had to allow was "twimg.com". But "twimg.com" isn't even listed in the uMatrix grid. Do any of you use uMatrix? What am I doing wrong?

Update, 2018/01/21: In my testing this afternoon, twimg.com does get listed in the uMatrix grid, and the video does display. I did reinstall my browser and set up a new profile, but I think I'm using the same uMatrix settings as before, so I don't know what fixed it. Maybe I had Firefox's Tracking Protection turned on in my old profile (see my comment below).
darkoshi: (Default)
I dislike it when the inside edges of fork tines are rough; it makes eating unpleasant, unless I'm very careful not to have the fork touch my tongue. That's one of the reasons my favorite fork is my favorite, because its tines are smooth. But how to know, when buying cutlery, if the tines are smooth or not? Most of the loose individual forks I've seen for sale, as at Walmart or World Market, have rough inside edges. Not to mention, the tines also generally have thick squarish ends which I don't like either. When they are part of a box set, it is hard to tell if the tines are smooth or not.

The same could be said for spoons... sometimes, spoons have rough outside edges, but it is not as common as with fork tines, and tends to only be the very cheap brands.

This online store says that smooth tines are polished more:
Higher-priced patterns will have more care given to polishing the fork tines. While it's very subtle and subconscious, your lips and tongue will feel the slight roughness. When you eat with a pattern that has well-polished tines, it feels smooth all the way through.

Point of Reference:
This Ikea Fornuft brand (marked with number "223 32") which Qiao bought has lovely spoons, and the knives are ok. They all have a nice shiny finish. But the fork tines are rough and unpleasant on the inside. The Ikea website lists them at ~$8 per 20 pieces (clearance price, perhaps?), while Amazon lists them at ~$15 per 20. So apparently I need to look for ones which are more expensive than that.

These look nice from the photo. $25 for a 5 piece set, though if one buys the forks individually, they are $18 each!

.

I previously posted about iTunes charging me an extra dollar for a song I bought back in early June. The first time I contacted them about it, they said it was an authorization charge and that it would "drop off". I waited another month to make sure, but it didn't drop off. After that, I had trouble getting through to their customer service again, and when I finally did, they said that Paypal should have refunded it to me. So I contacted PayPal, who promptly refunded it to me with no hassle. That was mid-August.

So imagine my consternation, when in mid-October, my PayPal account showed that iTunes had now also refunded me $1. Two weeks later, iTunes sent me an email. It didn't mention my prior communications with them; it only said:
You may have recently noticed that your PayPal account was erroneously charged for one or more authorizations from the iTunes Store, iBooks Store, App Store, Apple News, or iCloud, in the amount of $1.00. This issue has been resolved and all applicable charges have been reversed. You should see the reversals on your PayPal account within five business days.

So perhaps it wasn't only me with the problem, and perhaps they refunded everyone who was erroneously charged. Now I feel slightly bad that PayPal gave me a dollar too, when apparently it wasn't their fault after all.

.

A new browser for me to try out: Vivaldi. It's not open-source, though.

.

Dirk Gently, season 2, continues to be amazingly good and entertaining.

this week

Monday, October 16th, 2017 12:37 am
darkoshi: (Default)
Let's see. Monday, the dogs dug out from Qiao's yard.
Tuesday night or morning, they dug out from my yard. Or maybe dug and climbed; I'm still not certain. Searched the neighborhood nearly 3 hours for them and then finally found them in 2 different backyards one street over. Which I only noticed because our neighbor's dog barked and looked in that direction. (When I was searching before, I tended to look everywhere *except* in other fenced areas, wrongly assuming that if a yard was fenced off with a closed gate, that the dogs wouldn't have been able to get in there).
Then we took them back to Qiao's place where we can keep the small dog (the main instigator) tied up with a cable more easily until the fence is better secured. I think I will have to put down mesh fencing along the ground after all.

Wednesday, I cut up and cooked 2 butternut squashes that my mom gave me from her yard. They grew on their own out from her compost bin; not just these 2, but several more, all summer long.

Thursday, Qiao's retina started detaching.. he had surgery on that eye just 2 months ago for the same problem, but this time it is even worse than before (even though at an appointment 2 weeks ago, the eye doctor said it was looking good). He has emergency surgery scheduled this week on Tuesday. I hope they can fix it. His other eye also had the same problem several years back, and that one has been ok since its surgery (which was done using silicone oil, versus the recent surgery which used a gas bubble). This time the doctor's notes say he might use a scleral buckle, and/or silicone, or another gas bubble. We're hoping it won't be a bubble again, because Qiao had a hard time keeping the required face down position last time.

Friday, I made a new patient appointment with a doctor, so that I'll finally have a "primary care doctor". The nearest doctor's offices to me weren't taking new patients. So it's at a place somewhat further away, but not too far. The earliest appointment date they had was early December. Initially, it will be to discuss these foot nerve issues and/or whatever comes back from the blood test results and/or maybe the cracking sounds my neck has been making for almost a year now.

Today I ordered a new washing machine. I found out that there aren't any specific standards that must be met to call a washer "high efficiency". I found out that different companies / countries use to measure tub capacity differently, so that what one might call 2.5 cubic feet, another might call 3 cubic feet. But around 2011 the U.S. government started enforcing standardized measurements. I found that a lot of washers now include a setting for "Casual" clothes. Ie., whites, colors, casual, delicates, jeans, bulky items. The other ones are familiar, but I have no idea how "casual" clothes are supposed to be different than the others, or how they are supposed to be specially washed.

At work, they are finally giving me a new laptop with an SSD hard drive. It will be Windows 10 though; I'll have to get used to that.

I've started updating my Firefox add-on "ToggleDocumentColors" for WebExtensions. But because of everything else, I haven't had time to do much yet. It has to be implemented totally differently than before, because WebExtensions don't let you read or update the browser about:config settings. That boggled my mind when I found out. So instead, the add-on will have to "inject" a CSS sheet into the page, and the user will have to enter their desired colors as add-on settings, instead of the add-on being able to use the color settings the user already entered in the browser settings.

On Friday morning, an alarm siren was going off in a nearby shopping center. It could be heard at my house even inside with the windows closed - in the rooms on that side. That includes the room with my computer, and we had a Skype meeting that morning, so I was hearing this faint high-low-high-low-high-low siren noise in the background for more than an hour. By the time I was ready to leave for work, I was so annoyed that I started yelling (inside the house), in a wailing way, imitating the sound. It was slightly amazing - I was really able to imitate it pretty well... sort of like the wailing done in some North African cultures when someone dies. Ululation, that is the word. But I was using my throat/vocal cords to ululate, as opposed to my tongue. My voice was hoarse for the rest of the day.

Late Friday evening when I got back from work, the siren was still going! I called the police to report it, and was thankful that I was going to Qiao's house for the weekend.

Sunday evening when I got back from Qiao's house, the siren was still going!!!! I called Qiao and told him that I was coming right back, after I gathered my stuff for work, and more food. On the way back, I drove down to see where exactly the siren was coming from. It wasn't from where I expected; it was from an empty store even further away.
darkoshi: (Default)
I've been trying to support independent journalism by getting paid accounts on some news sites whose articles I occasionally read (even though most of the time, the pages I read are ones that other people have linked to).

I had made a note that Slate.com charges $49 for a year's subscription. Today the site even shows an introductory price of $35/year. So I decided to sign up. But after fighting with their website for the last half hour, I've changed my mind.

First problem: The Join Slate Plus page says what the membership costs and what special perks you get. But there were no fields for signing up, and no link or button for any sign up page. I had to click NoScript's "Temporarily Allow All This Page" icon 4 times for the fields to finally be displayed. (Each time you click that icon, NoScript allows JavaScript for the domains that were previously blocked, but then encounters additional domains which the page indirectly references, and for security reasons, NoScript doesn't allow them until you click again. And so on.)

Furthermore, the fields that show up aren't for buying a paid account, but rather for "Try it Free for 2 Weeks!" That's not what I wanted.

So instead I used their normal Sign Up page to create an account. It asks for an email address, display name, and password. It took me a while to decide on a display name to use. Upon submitting my info, the site then brought up the Terms of Service. But there was no Accept button. I repeatedly clicked the "Allow All This Page" icon, until 30 or more domains were unblocked (and my laptop fan started spinning on high speed from all the crap it was trying to load each time, because underneath the ToS, the page showed a bunch of news articles), and still no Accept button displayed. Yet when I tried to go to my account page, it kept re-displaying the Terms of Service, like it was waiting for me to accept them.

Then I tried a different browser without NoScript. That way, I was able to log in and open my account profile. The account page has a "Manage subscriptions" link. But when I click the link, it only opens the slate.com homepage. So I can't see whatever email lists they may have added me to by default. Hopefully I'll be able to unsubscribe from them somehow, supposing they did add me to any lists.

Then I tried logging in from my normal browser again. But when I click the login button, it ...

(oh thank goodness for Dreamwidth's AutoSave. I just closed both browser windows, to see if I was only having trouble because I was still logged in from the other window, not realizing that I was also closing the tab where I was writing this post.)

When I click the login/account icon, nothing happens. I have to again allow JavaScript from a bunch of domains, just to get the login fields. But then when I enter them, I still don't get logged in. Sigh.

This is way too much trouble. I no longer like their website, so I don't want to give them any money after all. The articles I see on their site today don't seem so great either (or is that sour grapes speaking?).

opera browser

Wednesday, June 7th, 2017 02:44 am
darkoshi: (Default)
I was getting ready to install one of the Opera browsers on my phone, but I noticed that their Google Play pages say "contains ads" - even though the browser itself supposedly contains ad-blockers. So where do the ads get displayed? Do they block the normal ads and inject their own instead?

The app details mention: Opera Mini may show ads from Facebook. To learn more, see https://m.facebook.com/ads/ad_choices
But that link results in a Facebook page with message "The page you requested was not found."

I did a web search and didn't find more info on that, but found this (from July 2016): Opera browser sold to a Chinese consortium for $600 million.
That is news to me.

It reminded me of something else I read recently that surprised me too. I thought that Lenovo was a part of IBM, and that IBM was still a PC/laptop manufacturer. But IBM sold "off its personal computer (ThinkPad/ThinkCentre) and x86-based server businesses to Lenovo (2005 and 2014, respectively)". And Lenovo "is a Chinese multinational technology company with headquarters in Beijing, China."

other things

Sunday, June 4th, 2017 02:47 am
darkoshi: (Default)
Still tweaking other things on my new cell phone too.

I found out that one can remove the pages from these old family photo albums (and put them back together again). Which means that scanning the albums shouldn't be that difficult after all (as long as each page fits on the flatbed - one of the albums does just barely. The other one would require using my mom's larger scanner). Which means that's another thing I want to get done.

Firefox addons; learn how to update them to use these new WebExtensions APIs.
Which also shows me that my JavaScript knowledge is woefully out of date. It's changed a lot in 20 years.

I've just installed 2 and a half years worth of Windows updates on one of Qiao's old Windows 7 desktop computers, which we haven't used in that long. Because it has iTunes on it, and I don't want to install iTunes on my laptop. But there are a couple of items I want to get, which are only available to download from iTunes. And of course, that meant I needed to install Windows updates too, right? I dunno. It seemed the thing to do even though it took all day. Makes me think I might even be able to get updates working again on my old laptop too, if I wanted to.
Simplifying updates for Windows 7 and 8.1 - a rollup for all updates through April 2016, with only one prerequisite that must be installed first.

Researching family tree stuff. Old census records. Found out my great-great-grandmother had at least 10 children, and possibly 5 more that didn't survive.
Need to determine what kind of open-source program I should use for doing a family tree, so that the data can be exported/imported in a widely compatible format.

Want to replace all the screws for the door lock strike-plates and hinges with 3-inch long screws. And replace some of the strike-plates with ones that take 4 screws instead of 2.

I finally took down the rest of the xmas decorations and put the boxes away. My mom helped me take down the xmas tree a few weeks ago. She and Qiao are as bad as me - once I made my mind up to take them down, they both said "I think you should just leave them up", making me debate it internally all over again.
darkoshi: (Default)
About 6 years ago at work, I set up an online group on one of the corporate websites intended for that purpose. It was a group for our developers to share information and post questions & answers. Many coworkers joined the group, and it got a good bit of use in the first years (about 180 posts/threads). But the activity eventually lessened, and the last post was 2 years ago (for various reasons, I suppose).

Recently all group owners were notified that the website was being shut down soon, in favor of some other new site on different technology. We were told that if we wanted to save our group's content, no tools were being provided for doing so, but that we could copy and paste the content into Word documents.

I harrumphed at the thought. Opening each and every post, and copying/pasting it into a Word doc? You've got to be kidding. As the group hadn't even been used in 2 years, and much of the info there was no longer pertinent, there didn't seem much point in trying to save the content.

But yesterday I took some screenshots of the pages which listed the post titles, for memory's sake, or nostalgia, or because maybe that could somehow be useful.

Today a coworker emailed me a question. It reminded me of one of those posts, which explained how to find the foreign key relationships of a table in SQL Explorer. So I went back and read that post. It helped me answer the question.

Then I wondered if I could find an easier way to save the group data after all. I discovered that each thread had an option for saving to a PDF file - and to get that PDF, you only had to append ".pdf" to the URL of the thread's page.

If I could get a list of all those URLs, then I could save off the PDFs. Scrolling through the posts, 20 titles & URLs are shown per page. So I saved off about 10 HTML pages like that. Then I used File Locator Pro (an awesome tool; I highly recommend it) to parse out the URLs along with the titles. I used a reg-ex search query, and saved off the matches, using this method: export just the content found by a regex expression.

Then I determined how to save off the PDFs from the URLs. After logging into the website in my browser, entering the command "start firefox [URL]" in a command window would open the URL in a new tab of the browser. So I divided the URLs into groups of 10, and used a batch file to open the URLs, ten at a time. (I didn't want to do all 180 at once, as I had a feeling that would either crash the browser and/or get me into some kind of trouble, as in who's this person fetching a zillion pages from our webserver all at once?).

Then I used a Firefox plugin, Mozilla Archive Format, to save all open tabs to a MAFF file. A MAFF file is a zip file containing a folder for each tab. Each folder has an index.html (or in my case index.pdf) file, along with a RDF file which has metadata including the page's original filename.

So, once I had saved off MAFF files for all the URLs (about 18 MAFF files), I unzipped them all, extracted the PDFs, used another batch file to rename them back to the original numeric filenames (which puts the posts in order by date), and to include the post titles as part of the filenames.

For creating the batch files, I use Notepad++'s column editing to edit a bunch of lines at once, and macros to apply the same changes to each line.

And voila, I now have the group's entire content exported as PDF files which can be browsed or searched. And it only took me a few hours to do, most of which was figuring out how to do it as opposed to actually doing it.

I'm not sure what I'm going to do with the files now, but at least I have them.

Figuring out how to do things like that makes me feel clever.
darkoshi: (Default)
Yesterday while trying to get my LJ login to persist, I accidentally deleted all cookies. And now today it was Dreamwidth that kept logging me out! Even though I didn't change my Dreamwidth exception, which was working before.

Obviously I didn't completely understand how the cookie exceptions work, so I read up on them, and did some more testing.

Cookie settings - from http://blog.teamtreehouse.com/how-to-create-totally-secure-cookies :

Path: The default value of “/” means every request will get the cookie, while “/forums/” would limit the cookie to just that path.

Domain: Setting “www.example.com” will mean only the exact domain “www.example.com” will be matched, while “.example.com” will also match again any subdomain (forums.example.com, blog.example.com).

Secure: tells the browser (or other http clients) to only send the cookie over SSL connections.

HttpOnly: tells the browser that it should not allow JavaScript to access the contents of the cookie. This is primarily a defense against cross site scripting.


(so apparently "HttpOnly" has nothing to do with HTTP vs HTTPS, but "Secure" does.)

The DW cookies have Path = "/", Domain = ".dreamwidth.org", HttpOnly = true, Send for = "any type of connection" (which must mean Secure=false). So the cookies are sent from the browser to the DW server when any DW page on any subdomain is opened, and for both http and https.

But the Exceptions are what control how long the cookies are stored.

Based on the following pages, you don't have to enter subdomains (and you shouldn't use wildcards) in the URLs for Exceptions - all subdomains are included by default. Ie. "yahoo.com" includes "mail.yahoo.com".
https://bugzilla.mozilla.org/show_bug.cgi?id=336207
https://bugzilla.mozilla.org/show_bug.cgi?id=286499

Based on my testing, HTTP and HTTPS exceptions are mutually exclusive. Adding an "http://" exception will only work on pages using HTTP. Adding an "https://" exception will only work on pages using HTTPS. So if you've set your cookies to be deleted when closing the browser, but you want your "ljloggedin" cookie to persist whether you've logging in from an HTTP *or* an HTTPS dreamwidth page, you need to have "Allow" exceptions for both "http://dreamwidth.org" and "https://dreamwidth.org". Whereas if you are careful to only login from the HTTPS pages, you should only need the latter.

May 2025

S M T W T F S
    123
45678910
11121314151617
1819 2021222324
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Thursday, May 22nd, 2025 01:20 pm
Powered by Dreamwidth Studios