Skip to content
Permalink
Browse files

Delete all previous commit

  • Loading branch information...
eladkarako committed Nov 7, 2019
0 parents commit 5e7d61b0b40d75d10354c29dff8c4e90a04e96cd
@@ -0,0 +1,10 @@
*.exe binary
*.gif binary
*.png binary

resources/*.txt text eol=crlf
/*.txt text eol=lf

*.cmd text eol=crlf
*.js text eol=crlf
README.md eol=crlf
@@ -0,0 +1 @@
custom: https://paypal.me/e1adkarak0
24 LICENSE
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org>
@@ -0,0 +1,48 @@
<h1><img alt="" width="48" height="48" src="resources/icon.png"/>HOSTS/Ad-Block</h1>

<img alt="" src="resources/icon.gif"/>


Suggested usage: fork it, replace <code>/USERNAME/</code> with your GitHub-username, use links (direct download).

<pre>
https://raw.githubusercontent.com/USERNAME/hosts/master/_raw__hosts.txt
<hr/>
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts0.txt
<hr/>
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_with_localhost.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts0_with_localhost.txt
<hr/>
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_hide.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_block.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_block_inline_script.txt
https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_style_inject.txt
</pre>
Or download it all in an archive:
<pre>
https://github.com/USERNAME/hosts/archive/master.zip
</pre>
<hr/>
The <code>_raw__hosts.txt</code> file is just a raw list of the host-domains (without any prefix),
<code>hosts.txt</code> uses <code>127.0.0.1 </code> prefix for each line,
<code>hosts0.txt</code> uses <code>0.0.0.0 </code> prefix for each line,
<code>hosts_with_localhost.txt</code> and <code>hosts0_with_localhost.txt</code> uses the same prefixes but adds an additional entries for machine's self-<code>localhost</code>.
The <code>hosts_adblock.txt</code> has the same content as <code>_raw__hosts.txt</code> built with an additional <a href="https://github.com/gorhill/uBlock/wiki/Static-filter-syntax/">uBlock-filter format</a> file-headers.
<hr/>
For developers - download/clone, modify any of the <code>_raw_...</code> lists and run <code>_builder.js</code> using a NodeJS that is compatible with your operation-system <sup>(for example: <em><a href="https://nodejs.org/download/nightly/v9.1.1-nightly201711075f5ef4226e/win-x86/node.exe">Windows</a></em>)</sup>.
<hr/>
<br/>
<a href="https://paypal.me/e1adkarak0" ok><img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png" alt="PayPal Donation" ok></a>
@@ -0,0 +1,87 @@
@echo off

::force UTF-8 support
::chcp 65001 2>nul >nul

::----------------------------------------------------::
:: make sure to browse the path to your `node.exe`, ::
:: show properties, under compatibilities set "ON" ::
:: the checkbox for run as admin. ::
::----------------------------------------------------::


set _NODE=C:\nodejs\node.exe


::relative path
set _PATH=%~dp0
set _SCPT=_builder.js
set __BLD=build


::to explicit path (long)
set _SCPT="%_PATH%%_SCPT%"
set __BLD="%_PATH%%__BLD%"


::to explicit short path (8.3)
for /f %%a in ("%_NODE%")do (set "_NODE=%%~fsa" )
for /f %%a in ("%_SCPT%")do (set "_SCPT=%%~fsa" )
for /f %%a in ("%__BLD%")do (set "__BLD=%%~fsa" )

::cleanup old build folder.
del /q /s /f "%__BLD%" 1>nul 2>nul
del /q /s /f "%__BLD%\" 1>nul 2>nul
del /q /s /f /a:rhisal "%__BLD%\*" 1>nul 2>nul
rmdir /q /s "%__BLD%" 1>nul 2>nul
rmdir /q /s "%__BLD%\" 1>nul 2>nul
echo.
echo DEBUG: cleanup old build folder.
if exist %__BLD% goto BUILD_NOCLEAN
if exist %__BLD%\NUL goto BUILD_NOCLEAN
echo DONE.


::create new empty build folder.
mkdir "%__BLD%" 2>nul >nul
echo.
echo DEBUG: create new empty build folder.
if not exist %__BLD% goto BUILD_NOCREATE
if not exist %__BLD%\NUL goto BUILD_NOCREATE
echo DONE.


echo.
echo DEBUG: running main script ^("%_SCPT%"^) with NodeJS ^("%_NODE%"^).
echo.
call "%_NODE%" "%_SCPT%"
echo.
echo DONE.


echo.
echo DEBUG: all done.


goto EXIT


::------------------------------------------------


:BUILD_NOCLEAN
echo.
echo ERROR: could not delete the "%__BLD%" folder, maybe it is used by another program, try run again.
goto EXIT


:BUILD_NOCREATE
echo.
echo ERROR: could not create the "%__BLD%" folder, try run again.
goto EXIT


:EXIT
echo.
pause

0 comments on commit 5e7d61b

Please sign in to comment.
You can’t perform that action at this time.