Proposal for updated “Ad Block”

Forum Forums General Software Proposal for updated “Ad Block”

  • This topic has 39 replies, 8 voices, and was last updated Dec 16-11:12 pm by PPC.
Viewing 10 posts - 31 through 40 (of 40 total)
  • Author
    Posts
  • #124049
    Member
    blur13

      If you make a “Proposal for updated Ad Block” post on a public forum you are bound to get suggestions that you may or may not agree with. It doesnt mean that you have to take them into consideration. Its your script, do what you like with it. If others like it, they can use it. If you like it, you can use it. Open source, its win win.

      #124050
      Moderator
      Brian Masinick

        @blur13 I agree; contributions are just that. The person creating the script can choose to receive and apply suggestions, or keep things as is, and even request to remove the contribution in the case that it receives no love or support; it IS freely available software.

        An individual can, since it’s typically provided under a GNU Public License, grab the code, modify it, and use it in a modified state, contribute it back either as an update, a fork, or NOT share it, and use the modifications ONLY for personal use. Of course, since it’s a GNU contribution, one cannot grab it, reuse it and then attempt to sell it unless they credit others preceding them, in which case that is also permissible.

        So for anyone who wants to alter this or any other script, grab it and play with it; I do that every so often for my own personal use, and nobody even knows unless I chat or talk about it.

        --
        Brian Masinick

        #124673
        Member
        Wallon

          Dear anticapitalista, Dear PPC,

          I saw that GitLab had been updated for the block-advert.sh script.
          I extracted a *.pot file from the new script. I compared this *.pot file with the *.mo file at Transifex. The window titles, for example, can no longer be translated. There’s also the underscore that appears in several strings.
          It would be nice to update the *.pot file at GitLab and update the *.pot file at Transifex.

          Here is the new *.pot file with 2 comments to help translators.
          While checking the translations of other languages, I noticed that some new members at Transifex were translating variables, for example.

          Thanks to both of you,

          Kind regards,
          Wallon

          #124678
          Member
          PPC

            @Wallon – I think anticapitalista has not yet updated the script in gitlab.

            @anticapitalista – the latest version of the script in attached to https://www.antixforum.com/forums/topic/proposal-for-updated-ad-block/#post-123806 if you want to use it, please update the file (sorry, but git seems to really not like me).

            P.

            #124687
            Member
            PPC

              Dear anticapitalista
              I noticed you just updated some git projects, including the Ad Block one- you updated Wallon’s language file, but not the script itself – was that by choice?

              P.

              #124692
              Forum Admin
              anticapitalista

                Not by choice but through confusion.
                Unless the latest versions of scripts, pot files, translations etc are updated to Gitlab, we will get confused.
                I’ll update the one I think is the latest and we’ll se if it matches the translations as well.
                I have no idea.

                Philosophers have interpreted the world in many ways; the point is to change it.

                antiX with runit - leaner and meaner.

                #124693
                Member
                PPC

                  @anticapitalista – I just checked – you uploaded the most current (and last) version of the updated script.
                  I’m not sure about the localization file- I think Wallon assumed that the script that was on the git project was the latest version and created the localization file based on that script…
                  Hey, localization is important, but it’s more important to have the latest, bug free version of the script. Previous localizations still work perfectly with the script. The only problem is that if the new string is not on the localization file, the string won’t be translated (case in point, basically, the names of the kinds of web pages that will be blocked, the name of the script on the title bar, etc).

                  @Wallon, if I’m right in what I told anticapitalista, please update your localization file, as soon as you can.

                  #124700
                  Member
                  Wallon

                    Dear anticapitalista, Dear PPC,

                    Sorry, I can’t be everywhere at once as anticapitalista. I don’t know how he does it?
                    I checked the last script and pulled up a new *.pot file. The translations in Transifex are fine, so nothing needs to be changed!
                    MX Linux always requests that you correct the “charset” in *.pot files to avoid problems with foreign languages.
                    The correct code should be “charset=UTF-8” and it has not been modified in the *.pot file on GitLab.

                    You’ll find the correct *.pot file to put on Gitlab in the appendix to my message.
                    I think anticapitalista can edit the *.pot file directly on GitLab and replace the words charset=CHARSET on line 17 with the words charset=UTF-8. It will go even faster for him.

                    Thanks to both of you,

                    Kind regards,
                    Wallon

                    #124706
                    Member
                    Wallon

                      anticapitalista is super fast too! Thanks a lot.

                      #126503
                      Member
                      PPC

                        Folks, please test antiX ad block on antiX 23… I think it somehow is not working correctly – I think I left everything unblocked, when I was testing it, after I installed antiX 23.1 on my newest desktop computer… but… when I tried to enable everything but social media, the hosts file still had the only dozen or so entries, only after I launched it again, I have it filled… and even so with 1161 lines, blocking everything including social media, without blocking social media, it has only 221 lines – it used to have many thousands of entries… If I only select to block ad and malware, it has 845 lines.
                        The GUI changes I introduced should not cause this kind of behavior, and I tested it extensively but…

                        Note: I probably won’t be able to debug any problem in the next days…

                        EDIT: I can confirm a similar behavior, under antiX 23.1, from the original script (that I imported from antiX 22 from my 32bits laptop)

                        EDIT2: I can confirm that the current newest version of the script, avaible under antiX 23 seems to work perfectly under antiX 22. This is either something specific to antiX 23 (that I doubt) or my computer with antiX 23.1 is so fast that the scripts requires some kind of sleep command to work correctly…
                        If that’s simple, I’ll try to solve it… it’s just a matter of finding out where to insert a sleep command…

                        Nope. I can confirm that both the original version of the script, before I started editing it and the latest version behave the same:
                        If you select only to block ads+malware the hosts file has much more entries than if I select to bloc ads+malware AND Porn… but I can’t tell what’s causing this…

                        Like the Beatles sang : HELP! I NEED SOMEBODY… HELP!

                        P.

                        • This reply was modified 6 months, 1 week ago by PPC.
                        • This reply was modified 6 months, 1 week ago by PPC.
                        • This reply was modified 6 months, 1 week ago by PPC.
                      Viewing 10 posts - 31 through 40 (of 40 total)
                      • You must be logged in to reply to this topic.