Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Opera 12.18

  • ok W T F, how do you post links with underscore ??? 😕

    again https://publicsuffix.org/list/public_suffix_list.dat

  • Yes, it's really annoying, I don't care what @joshl and others who try to justify the use of the stupid markdown system here say!
    Thanks very much for that, but the videos are still not working on churchservices.tv.
    Should this have fixed them?
    The videos on twitch.tv do seem to be working.
    🙂

  • Dave, it's not for me, it's simple. Angles, for example. 😛

  • @davehawley

    https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus#Browser_compatibility

    opera doesnt support hasFocus, but there is non generic fix in browser.js

    if(hostname.endsWith('accounts.google.com')){
    		document.hasFocus=function(){return !document["hidden"];}
    		log('PATCH-1152, Google sign-on - fake hasFocus method');
    	}
    

    why its not generic I dont know, pretty stupid 😕

    here is a fix for you, make a file called whatever.js, put it in userjs directory:

    // ==UserScript==
    // @name blah
    // @version 0.1
    // @author Rasz_pl
    // @namespace
    // @description blah
    // @include			*churchservices.tv/*
    // ==/UserScript==
    document.hasFocus=function(){return !document["hidden"];};
    

    works like a charm, you are welcome 🙂

  • It certainly does!
    @winterling will be delighted I'm sure!
    I take it this will fix any site with the same issue, not just churchservices.tv.
    I hope spammers don't harvest your e-mail address from that code BTW!
    🙂

  • no, its only for this one site, you could change it by leaving only "*", but this is the first time I ever encountered hasFocus in ~13 years of using Opera, so I wouldnt sweat it. I would rather message admin of that site and tell him to remove it. Its in the code, but I dont think its even used, opened this site in Chrome and there is no difference between browser having focus or not = another case of clueless web designer making something non standard and broken.

  • Thanks again!
    You haven't got a fix for the Facebook search field now being mis-placed have you?!
    😃

  • You haven't got a fix for the Facebook search field now being mis-placed have you?!

    Actually, I already do.

    Make a CSS file containing the following:

    ._50tk, ._2t-e {
        display: flex;
    }
    
    ._2t-e, ._50tm {
        flex: 1;
    }
    

    Then set this file as the custom style sheet in site preferences for FB. Of course this solution may break when they make changes to the site again, but we'll see. 😉

  • A small fix – the first line of the CSS should be:

    ._50tk, ._2t-e, ._2t-f {
  • Thanks for the correction, that explains why the log off icon was missing in the first version!
    So good to see the search field back where it should be, you sir, are a genius!
    :love:

  • Email removed from here anyway ...

  • Good update... I is still usin Opera 12.18...

  • i cannot save ebay passwords anymore, there is no "save" popup after i have entered them.
    also my saved ones from before are not offered, the yellow border is missing.

    anyone same experience? can the save be triggered somehow manually?
    would be immensly annoying if i would have to enter this every time.

    rest of the sites work so far..

  • Go into the password manager, search for "ebay" and delete all the entries.
    When you next go to the site the password save should be offered again.
    Be aware that not all sites' login pages work with Opera 12's password manager now.
    🙂

  • Be aware that not all sites' login pages work with Opera 12's password manager now.

    This is often because those sites add autocomplete="off" attribute to their login forms. I've made a User JavaScript that fixes this:

    // ==UserScript==
    // @include http://stupidsite.com/login.php
    // ==/UserScript==
    
    // prevent disabling autocomplete in forms
    (function() {
        var tags = ["form", "input"];
        for (var t = 0, tag; tag = tags[t]; t++) {
            var nodes = document.getElementsByTagName(tag);
            for (var n = 0, node; node = nodes[n]; n++) {
                if (node.getAttribute("autocomplete") == "off") {
                    node.setAttribute("autocomplete", "on"); // Opera 12 doesn't support autocomplete property
                    node.parentElement.innerHTML += ""; // needed to make changes effective for form elements
                }
            }
        }
    }());
    

    Place this in a file named autocompleteOn.user.js in your User JavaScript directory (specified here, usually it's C:\Users\<username>\AppData\Roaming\Opera\Opera\userjs) and adjust the site's address in the @include line. You can add @include lines for more sites. Then enable User JavaScript. Note that most login pages use HTTPS, so for this to work you also need to enable User JavaScript on HTTPS, but then please use it with caution as suggested in the docs (at the very bottom of the page).

    EDIT: Apparently this dumb forum's software mangles Opera config links, so you need to remove the denied: prefix from them manually...

  • Just disable

    opera:config#UserPrefs|AutocompleteOffDisablesWand
  • Just disable opera:config#UserPrefs|AutocompleteOffDisablesWand

    I have this one disabled yet Wand still won't work without the User JavaScript.

  • Yes that option is un-checked for me too and has been for a long time, but I still get sites that won't prompt for their login details to be saved.
    Thanks so much again @robkaw for the userjs, I will certainly implement it!
    I assume that the double forward slash at the start of the @include line needs to be removed to make the list active?
    🙂

  • I assume that the double forward slash at the start of the @include line needs to be removed to make the list active?

    No, the double slash is needed there. UserJS uses special markers in JS comments.

  • Ah thanks, notation like that it sometimes used to mark inactive comments, so I thought I'd better check.
    If I add multiple web addresses to the script, do they each go on a new line with their own @include at the start and double forward slash at the beginning?
    🙂

Log in to reply