Commit 73b7aea4 authored by Aral Balkan's avatar Aral Balkan
Browse files

Now updating the block rules from the site.

parent c941f3a4
......@@ -16,6 +16,11 @@
<string>1.0</string>
<key>CFBundleVersion</key>
<string>2</string>
<key>Chrome</key>
<dict>
<key>Global Page</key>
<string>global.html</string>
</dict>
<key>Companion Bundle Identifier</key>
<array>
<string>better.fyi.safari.companion</string>
......
......@@ -1144,6 +1144,17 @@
"type": "block"
}
},
{
"trigger": {
"url-filter": "flite.com",
"load-type": [
"third-party"
]
},
"action": {
"type": "block"
}
},
{
"trigger": {
"url-filter": "fonts.googleapis.com",
......@@ -2902,6 +2913,123 @@
"url-filter": "yimg.com",
"load-type": [
"third-party"
],
"unless-domain": [
"yahoo.com",
"login.yahoo.com",
"edit.yahoo.com",
"advertising.yahoo.com",
"answers.yahoo.com",
"autos.yahoo.com",
"celebrity.yahoo.com",
"yahoo.match.com",
"developer.yahoo.com",
"downloads.yahoo.com",
"everything.yahoo.com",
"en-global.help.yahoo.com",
"finance.yahoo.com",
"www.flickr.com",
"groups.yahoo.com",
"help.yahoo.com",
"info.yahoo.com",
"legalredirect.yahoo.com",
"local.yahoo.com",
"mail.yahoo.com",
"messenger.yahoo.com",
"mobile.yahoo.com",
"music.yahoo.com",
"my.yahoo.com",
"news.yahoo.com",
"policies.yahoo.com",
"search.yahoo.com",
"security.yahoo.com",
"shopping.yahoo.com",
"smallbusiness.yahoo.com",
"connectedtv.yahoo.com",
"sports.yahoo.com",
"toolbar.yahoo.com",
"www.tumblr.com",
"weather.yahoo.com",
"ar.yahoo.com",
"au.yahoo.com",
"be.yahoo.com",
"fr-be.yahoo.com",
"br.yahoo.com",
"ca.yahoo.com",
"cz.mail.yahoo.com",
"cl.yahoo.com",
"co.yahoo.com",
"de.yahoo.com",
"ee.mail.yahoo.com",
"es.yahoo.com",
"espanol.yahoo.com",
"fr.yahoo.com",
"hr.mail.yahoo.com",
"in.yahoo.com",
"id.yahoo.com",
"ie.yahoo.com",
"it.yahoo.com",
"lv.mail.yahoo.com",
"lt.mail.yahoo.com",
"hu.mail.yahoo.com",
"en-maktoob.yahoo.com",
"malaysia.yahoo.com",
"mx.yahoo.com",
"nz.yahoo.com",
"at.mail.yahoo.com",
"pe.yahoo.com",
"ph.yahoo.com",
"xp.mail.yahoo.com",
"qc.yahoo.com",
"ro.yahoo.com",
"sg.yahoo.com",
"si.mail.yahoo.com",
"sk.mail.yahoo.com",
"za.yahoo.com",
"se.yahoo.com",
"uk.address.yahoo.com",
"uk.answers.yahoo.com",
"uk.calendar.yahoo.com",
"uk.careers.yahoo.com",
"uk.celebrity.yahoo.com",
"uk.eurosport.yahoo.com",
"uk.everything.yahoo.com",
"uk.finance.yahoo.com",
"uk.groups.yahoo.com",
"uk.local.yahoo.com",
"uk.mail.yahoo.com",
"uk.messenger.yahoo.com",
"uk.mobile.yahoo.com",
"uk.yahoo.com",
"uk.news.yahoo.com",
"uk.notepad.yahoo.com",
"profile.yahoo.com",
"uk.safely.yahoo.com",
"uk.search.yahoo.com",
"uk.antispam.yahoo.com",
"uk.shopping.yahoo.net",
"uk.sports.yahoo.com",
"uk.toolbar.yahoo.com",
"uk.style.yahoo.com",
"uk.videogames.games.yahoo.com",
"uk.weather.yahoo.com",
"uk.yahoo.com",
"pressroom.yahoo.co.uk",
"www.yahoo.com",
"ve.yahoo.com",
"vn.yahoo.com",
"gr.yahoo.com",
"bg.mail.yahoo.com",
"rs.mail.yahoo.com",
"ua.mail.yahoo.com",
"uk.help.yahoo.com",
"il.mail.yahoo.com",
"maktoob.yahoo.com",
"th.yahoo.com",
"tr.help.yahoo.com",
"hk.yahoo.com",
"tw.yahoo.com",
"yahoo.co.jp"
]
},
"action": {
......
<script>
// Better (https://better.fyi)
// Copyright © 2016 Ind.ie. Released under GNU AGPLv3. See LICENSE file.
// Load the latest content blocking rules
var request = new XMLHttpRequest();
request.open('GET', 'https://better.fyi/blockerList.json')
request.setRequestHeader('Cache-Control', 'no-cache')
request.onload = function(){
console.log('Better content update complete. Status: ' + request.status);
var better = JSON.parse(request.response);
safari.extension.setContentBlocker(better);
}
request.send();
</script>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment