yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] ChiDi9901:
Well, the OP (junior member) mentioned "strange languages". So he/she might not understand all this complex steps. That's why I "let it be" to keep the things easy. If he/she understands these steps then it's good for him/she. But you're right, I lied. And thanks for the clarification and pointing out my wrong information.
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] dancress:
Personally, I had every Xperia unlocked without backing up the DRM keys. I never had any disadvantage. I was, however, a little reluctant with the XT3C. That's because I use it as both my phone and tablet.

Still, did it now. No adverse effects. Root is SO much more important than the Bravia engine or whatever. And the camera isn't very good anyway so I don't miss the 'better' quality. It's bad either way :D
[HTC One V] HackedBotato:
A long time ago, I purchased the HTC One V from Virgin Mobile (CDMA I believe) and I loved it, but it was a bit slow, so I researched about flashing a custom ROM. I managed to root it, and attempted to flash a rom, but after that I couldn't turn it on, with the possibility of a hard brick. I recently found this device again, and am wondering if it's possible to recover it. Holding the power button makes the small light at the top of the device blink orange. All help is appreciated!
[HTC One V] echow2001:
can you get into hboot or bootloader?
[Windows 10, 8, 7, XP etc.] Makorus:
Introduction

Features

Downloads & Changelogs

FAQs

Disclaimer

License/forks

Requirements

Instructions for use with administrator privileges (recommended)

Instructions for use without administrator privileges

Instructions to customize psAdBlock

Credits & thanks to

XDA:DevDB Information

psAdBlock, Tool/Utility for the Windows 8 General

Contributors

Makorus

Source Code: https://github.com/makorus/ps-adblock

Version Information

Status: Stable

Current Stable Version: 1.6.5

Stable Release Date: 2017-07-03

Created 2015-05-09

Last Updated 2018-07-13
[Windows 10, 8, 7, XP etc.] Makorus:
FAQs
[Windows 10, 8, 7, XP etc.] Gionathan:
Awesome! Can't wait to try this! I've used HostsMan, which is the closest UI-enabled program similar to AdAway for Windows, but it's really tricky to get it to work and it used to break my internet a lot. Had to go in safe mode to restore the original hosts file.
[Windows 10, 8, 7, XP etc.] Makorus:
Glad to read that, I hope you like it! Never heard of it, but I just took a look at it. I guess this tool doesn't disable the DNS cache service.

I'm thinking of implementing a check, to verify whether the DNS cache service is enabled or disabled.
[Windows 10, 8, 7, XP etc.] Makorus:
Hello everyone

I just uploaded two new versions, V1.2 and V1.3. I also made many other improvements, read the full change log for more information. :)
[Windows 10, 8, 7, XP etc.] Makorus:
Hi everyone!

Sorry for the delay, but I had many things to sort out in my real life. However, I was able to work on V1.4 for you guys.

Now you can work with two text files called "whitelist.ini" and "hostslist.ini" to manage this script - there's no need to edit the PowerShell script file itself. Also, there are many improvements, read the full change log for more information.
[Windows 10, 8, 7, XP etc.] mrTGF:
thanks for this, it is is exactly what i was looking for, right now im trying to have this run on windows 10, i have a question the created "hosts" file is detected as a trojan virus, im wondering is this a false positive. i have backed up my system and original hosts file just in case. Hope there will be more developers for the Windsows platform so that we can make it a better OS, Ill let you know how it worked out, THNX

Just tried on Windsows 10, definitely not a virus, but i did experience allot lag with it, it blocks some ads in Microsoft Edge, runs
[Windows 10, 8, 7, XP etc.] godusopp:
Thanks for this great tool. Works great but can someone make an .exe out of it? It would be more convenient.
[Windows 10, 8, 7, XP etc.] Makorus:
Hi there, thank you for your reply. I can compile an EXE file out of it, but I expect a lot of false reports from anti-virus applications. I'll upload the EXE file tomorrow.

Kind regards

Makorus
[Windows 10, 8, 7, XP etc.] godusopp:
Thanks for the great work. I really appreciate it. I'll whitelist if antivirus detect it as false positive :)
[Windows 10, 8, 7, XP etc.] Dj_Art:
Your script not work
[Windows 10, 8, 7, XP etc.] Makorus:
Hi everyone

I just uploaded version 1.5. Go check it out! :laugh::good:

[MENTION=4022983]Dj_Art[/MENTION] Hey there

Hmm, it looks very strange. I guess you've got a Russian Windows 8.1 OS, am I right? Could you try out version 1.5 please?

Can you try placing the PS1 script on your desktop or somewhere else, where you have full access rights? Might be a permission issue as well.

Otherwise please hand out your system information (start -> run -> msinfo32 -> save as NFO file) so I can start debugging your error message.

[MENTION=6874343]godusopp[/MENTION] I've uploaded the EXE file as well, check the new ZIP file! :good:

[MENTION=6528721]mrTGF[/MENTION] Sorry I missed your post somehow. What Anti-Virus are you using?

The script itself is 100% clean, you can check out the source if you want. But I can't guarantee that the hosts sources I'm using are not compromised or whatever (but to be honest, I don't think so). ;)
[Windows 10, 8, 7, XP etc.] mrTGF:
I have just tried the new update and it doesnt work for me at all, Microsoft Edge slows down drastically, the only difference in terms of ads, is that they end up loading last, in regards to the false positive i have used AVG Antivirus 2014, the file definitely is not a Trojan. I was wondeing if you can use the same host sources that Adaway on android is using?
[Windows 10, 8, 7, XP etc.] Makorus:
Hi again

That's really strange, but this might be an issue with Windows 10/Microsoft Edge. I haven't tried yet how the hosts file reacts on a Windows 10 device. But I've got a Windows 10 device at home, so I'm gonna try it out as soon as possible and report back.

In the mean time, would you be so kind and post the version 1.5 log file? I think your DNS service might be online and that's why you face these issues.

Also, thanks for the information to your false positive alarm. Maybe you've already seen the VirusTotal.com link in my second post. You'll find TONS of false reports there. :(

Oh and by the way, actually, I'm using exactly the same hosts sources as the AdAway app on Android does.
[Windows 10, 8, 7, XP etc.] godusopp:
Thanks for the app. I've already reported it as false positive to bitdefender so hopefully they solve it soon.
[Windows 10, 8, 7, XP etc.] mrTGF:
Hi here is the log file you have asked for, i hope this helps. Also a little update, i went ahead and converted the hosts file to .txt, and had removed the very first empty line, after i put it back, this removed the lag from Microsoft Edge, however the ads still popped up after everything else loaded.
[Windows 10, 8, 7, XP etc.] mrTGF:
UPDATE: I have done some digging and discovered that the first line of the "hosts" file has to be "127.0.0.1 localhost" for this to work, also I used the host sources in your created hosts file and added more from other websites and made this one, it seems to work for me on windows 10/Microsoft edge, have not yet tried on other platforms.

Instructions:

1. Download the file hosts.txt below

2 Copy hosts.txt in the C:/Windows/system32/drivers/etc

3. Backup your current hosts file (ie. copy and paste it to somewhere safe. (Desktop?)

4. Delete the hosts your original hosts file in the C:/Windows/system32/drivers/etc

5. Rename the hosts.txt to hosts

credit goes to: [MENTION=4881417]Makorus[/MENTION] and http://winhelp2002.mvps.org/

UPDATE NOTE: I'm assuming that some of the hosts files from Adaway that Makorus used in his hosts file seem to be android specific, the reason I'm mentioning this is because earlier on in the project I created a file only using those sources the result being that the ads would load after the page itself loaded. However when I also added the hosts from the above website it seemed to have worked perfectly, more testing would need to be done, but it seems to work
[Windows 10, 8, 7, XP etc.] mrTGF:
I did not make any changes to the file, that is exact output I received from the process, If you look at my last post you will notice that I resolved the issue by formatting the hosts file differently and adding more sources.
[Windows 10, 8, 7, XP etc.] Makorus:
That's really strange. Adding http://winhelp2002.mvps.org/ to the hosts source list can't be the solution. If you check the PS1 file, you'll see that I already added this site to the default source list. Also, the order of the hosts entries doesn't matter. You can even add 127.0.0.1 localhost to the end of the file without facing any negative effects.

Can you try it with the new version 1.5.1 please and post the new log file?
[Windows 10, 8, 7, XP etc.] mrTGF:
What I did was add sources from their website and reformatted it, that said I have just tested 1.5.1, Edge slows down again, and the ads once more load after the page finishes. This is the log file I have received after running the process. It seems this time there was no abrupt stop to the process, however there still are some issues.

Please do me a favor and test the file I attached earlier to your Windows 10 machine. I am trying to test it on another windows 10 locally, but don't have access to another machine at the moment.

Thanks

EDIT: you are correct the format itself , doesn't change the results. I just tested my theory in regards to the source types, I have kept your format and removed your sources and this time only left the ones from the website, the results are that the ads are removed.
[Windows 10, 8, 7, XP etc.] 3DSammy:
On a Windows 10 install I used both the power script (v1.5.1) and executable but neither created a hosts file. In both cases the log indicated it could not reach the server to get the list of urls ("Unable to connect to the remote server"). I attached one of the logs. I do have a virus scanner enabled (ESET) but I doubt that has anything to do with the issue.

I waited and tried a few times just in case the target server was off line for some reason but I always had the same results. Obviously I'm successfully connected to the internet. Any help would be appreciated.
[Windows 10, 8, 7, XP etc.] jeffshead:
For me, the 1.5.1 script works and generates the hosts file but the hosts file it generates is not working on either machine that I tested. It's not blocking anything. Both machines are Win7 x64. Other than the enormous 2.34MB size, I can't find anything wrong with the file.

I have cleared the DNS cache (even disabled the DNS Client service) and rebooted the machines but they just do not like the file. When I revert back to the MVPS Hosts file that I was using previously, all is well.

Anyone else experience this issue?
[Windows 10, 8, 7, XP etc.] Makorus:
Hi everyone

I just uploaded a new version. Thanks to [MENTION=5974571]jeffshead[/MENTION] for your input, it should work with the new custom hosts lists (check the ZIP).
[Windows 10, 8, 7, XP etc.] jeffshead:
Thanks for the new version. Just want to point out that all entries are now 0.0.0.0 instead of 127.0.0.1 like the previous version.

Still not working for me, though. Is there a hosts file size limitation somewhere in Windows?

I've tried moving '127.0.0.1 localhost' to the first line and I've tried using 0.0.0.0 and 127.0.0.1 for all entries. For some unknown reason, my systems do not like the hosts file that is generated. I even tried it on a fresh, virgin Windows install without success :(

UPDATE:

The hosts file created by the script is ignored on my computers. However, if I open the hosts file generated by the script and copy and paste its contents into a newly created hosts file, it works! I'm guessing it's a permissions issue.
[Windows 10, 8, 7, XP etc.] Makorus:
Hi Jeff

As much as I know there's no such limit. With version 1.5.2, I changed the script to point to 0.0.0.0 instead of 127.0.0.1. You can try it yourself: Pinging 127.0.0.1 takes a bit more time than pinging 0.0.0.0, that's why pointing to 0.0.0.0 leads to a better "overall-performance".

That's really strange. If you insert the "hosts" file from this script and try to ping one of the hosts which should be blocked (for example 11398.onceedge.ru), do you get a reply like "ping request could not find host 11398.onceedge.ru"?
[Windows 10, 8, 7, XP etc.] jeffshead:
Actually, 11398.onceedge.ru is a bad one to ping because that domain does not have any DNS records ;) It will always appear to be blocked.

shareasale.com is a better choice although I don't know why three of the sources are blocking it since it's a legitimate affiliate service.

Below is the ping result when using the hosts file generated by the script:

[IMG="With script"]http://i.imgur.com/TBHr8ca.png[/IMG]

Below is the ping result when using a hosts file that actually blocks the site:

[IMG="Blocked by hosts file"]http://i.imgur.com/lRdzsQs.png[/IMG]

In the first image, you can see that the DNS lookup took place. I can also visit the site with any web browser when using the hosts file generated by the script.

The second image depicts the result you should get when pinging any site that is blocked by the hosts file. There should not be any DNS resolution if the hosts file is blocking the site you are trying to ping.

So it appears size does not matter in this case. File size, that is :D I'm just guessing but it appears to be a format or permissions issue with the file generated by the script. To reiterate, I can copy the contents of the generated hosts file and paste it into a new file and it works. Weird that it does not work on three systems that I've tested but it works for other users.
[Windows 10, 8, 7, XP etc.] beland:
hi there.

thanks for the script.

With jeffshead's copy/paste hints I compared properties of hosts file generated with the script, and the default one. Default hosts has UTF-8 encoding, while generated hosts is UCS-2 LE BOM. After conversion to UTF-8 the size shrunk to a half of initial (1.12mb)

Anything on the testing scenario?
[Windows 10, 8, 7, XP etc.] jeffshead:
D'OH! Didn't think about encoding being the issue. This is the second time, in as many months, that encoding has caused trouble for me.

Looks like there is a work around here (http://stackoverflow.com/questions/5596982/using-powershell-to-write-a-file-in-utf-8-without-the-bom) but I'm not sure how to implement it.
[Windows 10, 8, 7, XP etc.] Makorus:
Dear community, many thanks for your contribution! Without you guys, I would have never ever seen this. Indeed, the PowerShell cmdlet "out-file" always adds a BOM (Byte Order Mark) to the file it creates. Even when I forced the encoding by setting the parameter -Encoding UTF8, it actually created an UTF8 encoded file, but it additionally added the BOM.

I added a few lines to work around this issue.

Could you test this new version please and report back if there are any other issues? I guess, many of the issues you guys reported here should be fixed now.

EDIT: I also recommend re-enabling the DNS cache service now (ignore the warning you may find in the log file). I guess, this should work as well.
[Windows 10, 8, 7, XP etc.] jeffshead:
I just ran v1.52 and v1.53. I ran both twice to make sure I got the same results both times.

The encoding issue seems to be fixed; however, I did find two issues:

1. I did not search the entire hosts file, but I did see one entry that was listed twice. The difference being which letters were capitalized. This occurs with both versions.

0.0.0.0 Adsatt.ABCNews.starwave.com

0.0.0.0 adsatt.abcnews.starwave.com​

2. In v1.53, "skype.com" is replaced with "localhost" in several lines but not with v1.52.

0.0.0.0 allolocalhost, 0.0.0.0 alloskype.com​

Those are the only two issues I found with my cursory inspection :)
[Windows 10, 8, 7, XP etc.] Makorus:
Thanks for your fast reply. I'll take a closer look at your reports as soon as I arrive home.
[Windows 10, 8, 7, XP etc.] Makorus:
As promised, I released a new version 1.5.4 which should fix this issue. Silly me, I didn't realize the PowerShell cmdlet Get-Unique is case sensitive (source: Microsoft TechNet). I added the "ToLower" method to the $PlainText variable, Get-Unique works correctly this way.

I can't reproduce the second issue you reported. Did you check both whitelist.ini files in v1.5.2 and v1.5.3? I'm pretty sure I recently added skype.com to the whitelist, so it's no issue I guess.

With v1.5.3, *skype.com is being allowed correctly. If you remove skype.com from the whitelist file and visit www.skype.com afterwards, you'll see that you're unable to open the page. :p
[Windows 10, 8, 7, XP etc.] josuemf:
downloaded latest version, I'm running Win7 SP1, and the following error appeared:

am I missing something?

version 1.5.3 generated the host file properly.

ps: you don't mention that powershell execution policy has to be modified to allow external scripts to run: Set-ExecutionPolicy RemoteSigned or bypass it: powershell -ExecutionPolicy ByPass -File script.ps1

Was I the only one with this issue?
[Windows 10, 8, 7, XP etc.] jeffshead:
1.54 does not work.

Error in my log matches what josuemf posted.

...

[System.Object[]] doesn't contain a method named 'ToLower'.

...

Back to the 'Skype' issue... The difference between v1.52 and v1.53 is that you added "Skype.com" to the whitelist.

Below are the entries with "skype.com" whitelited and without:

0.0.0.0 allolocalhost

0.0.0.0 alloskype.com

0.0.0.0 apps.localhost

0.0.0.0 apps.skype.com

0.0.0.0 avlocalhost

0.0.0.0 avskype.com

0.0.0.0 metrics.localhost

0.0.0.0 metrics.skype.com

0.0.0.0 pricelist.localhost

0.0.0.0 pricelist.skype.com

0.0.0.0 primelocalhost

0.0.0.0 primeskype.com

0.0.0.0 twlocalhost

0.0.0.0 twskype.com

0.0.0.0 ui.localhost

0.0.0.0 ui.skype.com

0.0.0.0 www.allolocalhost

0.0.0.0 www.alloskype.com

0.0.0.0 www.avlocalhost

0.0.0.0 www.avskype.com

0.0.0.0 www.primelocalhost

0.0.0.0 www.primeskype.com

0.0.0.0 www.twlocalhost

0.0.0.0 www.twskype.com

So we can ascertain from the list above, that whitelisting "skype.com" does not whitelist that domain. It whitelists every domain that contains the letters "skype.com". Also, the whitlisting function does not remove entries from the hosts file. It only replaces the text it finds in 'whitelist.ini' with the word "localhost" unless the entry in the hosts file is an exact match with the entry in the whitelist (e.g., alloskype.com). In other words, if I change "skype.com" to "alloskype.com" in 'whitelist.ini', then that entry is completely removed from the hosts file.
[Windows 10, 8, 7, XP etc.] Makorus:
[MENTION=4579152]josuemf[/MENTION] can you post the complete log file? [MENTION=5974571]jeffshead[/MENTION] I'll look into it, thanks.

EDIT: Nevermind, figured out what was causing the issue. The method ToLower works only with strings, not with arrays (the variable $PlainText contains an array).

Somehow PowerShell 3.0 and newer "ignored" this mistake. I just opened the PowerShell.exe with the additional parameter "-version 2" and executed the script from there, I faced the same issue.

I applied a work around for this issue. Instead of applying the method ToLower to the variable $PlainText, I loop through every element of this array by using the ForEach-Object cmdlet and apply the ToLower method this way. Going to upload a new version soon.
[Windows 10, 8, 7, XP etc.] Makorus:
New version 1.5.5 is online. The reported issues with the ToLower method has been fixed. Thanks for your work, guys!

[MENTION=4579152]josuemf[/MENTION] Microsoft implemented this security feature when they published PowerShell. By default, the execution policy is set to "restricted", which means no scripts can be executed directly. You're able to configure the execution policy as you want. There are several execution policies, you can check them out here: Microsoft TechNet: Set-ExecutionPolicy. I personally recommend to change the execution policy to "unrestricted", this means you can execute scripts you created and even those you downloaded from the internet. Scripts from the internet will be blocked by default and you have to manually unblock these by going to the file properties and click on the "unblock" button there.

[MENTION=5974571]jeffshead[/MENTION] you're a genius, I never noticed this issue before. So I think I'll have to add regular expressions again to fix this issue.

Anyone out there who might help with the correct regular expression?

This is my test script:

Clear-Host

$DefaultPatchTable = New-Object System.Collections.Specialized.OrderedDictionary
#Syntax: HashTable.Add('key', 'value')
$DefaultPatchTable.Add('skype.com', '<replaced>')
$PatchTable = $DefaultPatchTable

$PlainText = "0.0.0.0 alloskype.com",
"0.0.0.0 apps.skype.com",
"0.0.0.0 first.second.skype.com",
"0.0.0.0 skype.com",
"0.0.0.0 www.skype.com"

Write-Host "---------------------------"
Write-Host "BEFORE:"
$PlainText

foreach($ToBeReplaced in $PatchTable.Keys)
{
$PlainText = $PlainText -ireplace "\w+\.$ToBeReplaced", $PatchTable.$ToBeReplaced
}

Write-Host "---------------------------"
Write-Host "AFTER:"
$PlainText

The goal is:

But this is the result from the script above, the red lines are not being covered by the regular expression in the script:

Any idea how to fix this? The following regular expression was used for this: \w+\.
[Windows 10, 8, 7, XP etc.] Makorus:
[MENTION=5974571]jeffshead[/MENTION] good news, I was able to add some additional regex patterns to the "patch function". I just tested it and it seems to work now. Version 1.5.6 is online and waiting for your download. :)

Also, this and future releases contain an additional file called "_run_script.bat". You can use this batch file to automatically unblock the ps1 file and launch it.

powershell.exe -ExecutionPolicy Bypass -Command "& {Unblock-File -Path '%~dp0PS_AdBlock*.ps1' -Confirm:$false}"
for %%f in (%~dp0PS_AdBlock*.ps1) do powershell.exe -ExecutionPolicy Bypass -File "%%f"
exit

By the way, does anyone have an idea for a logo? I want to create an icon for the exe file.
[Windows 10, 8, 7, XP etc.] Makorus:
Hi everyone!

Great news for you guys: I just released version 1.5.7.

Version 1.5.7 brings back the performance we used to have with older versions, and the whitelist function works now as advised.

I would greatly appreciate it if you kindly give me some feedback on this version. :)
[Windows 10, 8, 7, XP etc.] vagsvag:
This is a very good script, i was using before "127.0.0.1 whatever" at windows 10 because other wasn't working but 0.0.0.0....... working also. Thx 4 this
[Windows 10, 8, 7, XP etc.] Makorus:
You're absolutely welcome, it's cool that you appreciate my work! :)
[Windows 10, 8, 7, XP etc.] gothicVI:
I'd like to thank you for this script. Currently I'm using this on my linux machines with grat success and am happy to find something simmilar for windows as well. Will try it this evening when I'm back home. Keep up your work mate!
[Windows 10, 8, 7, XP etc.] Dhelice:
First of all I want to thank you for the job you have done. Your script is exactly what I was looking for.

It works as expected with desktop IE 11 but it has broken modern UI IE on win 8.1. Indeed since I have changed the original host file with the host file generated by the script modern UI IE is not able to reach any site. I don't understand. I tried to:

- reset IE settings

- run scf /scannow

- configure widows defender to not prevent host file modification

- check administrative rights associated to the host file

- activate and deactivate IE from windows features settings

- deactivate the windows firewall

For the record Firefox and Chrome work nicely with the host file generated by the script.

Do you guys have ideas on how I can fix that?
[Windows 10, 8, 7, XP etc.] gothicVI:
Hi [MENTION=4881417]Makorus[/MENTION] and all the others here: is it only me or are YouTube videos no longer marked as viewed for some of you as well? Meaning that videos I viewed by subscribed channels don't get the tag 'viewed' anymore. Do you know what I need to whitelist?

Gesendet von meinem Moto G 2014 LTE mit Tapatalk