Append needed by Adblock correctly after blockcss
This commit is contained in:
parent
58066e7dcc
commit
fc2bac2e01
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,6 @@ adblock_build_js (const gchar* private)
|
||||||
" public += ', .'+sites[i];"
|
" public += ', .'+sites[i];"
|
||||||
" break;"
|
" break;"
|
||||||
" }}"
|
" }}"
|
||||||
" public += ' {display: none !important}';"
|
|
||||||
" var mystyle = document.createElement('style');"
|
" var mystyle = document.createElement('style');"
|
||||||
" mystyle.setAttribute('type', 'text/css');"
|
" mystyle.setAttribute('type', 'text/css');"
|
||||||
" mystyle.setAttribute('id', 'madblock');"
|
" mystyle.setAttribute('id', 'madblock');"
|
||||||
|
@ -1304,6 +1303,7 @@ adblock_parse_file (gchar* path)
|
||||||
{
|
{
|
||||||
while (fgets (line, 2000, file))
|
while (fgets (line, 2000, file))
|
||||||
adblock_parse_line (line);
|
adblock_parse_line (line);
|
||||||
|
g_string_append (blockcss, "{display: none !important}\n");
|
||||||
fclose (file);
|
fclose (file);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue