Skip to content

Instantly share code, notes, and snippets.

View snoack's full-sized avatar

Sebastian Noack snoack

  • polypoly GmbH
  • Detroit, MI, United States
View GitHub Profile
--- README.md 2018-12-29 12:54:04.223316431 -0500
+++ README.rst 2018-12-29 13:14:12.985081423 -0500
@@ -1,5 +1,5 @@
-
-# python-abp
+python-abp
+==========
This repository contains a library for working with Adblock Plus filter lists,
a script for rendering diffs between filter lists, and the script that is used

python-abp

This repository contains a library for working with Adblock Plus filter lists, a script for rendering diffs between filter lists, and the script that is used for building Adblock Plus filter lists from the form in which they are authored into the format suitable for consumption by the adblocking software (aka rendering).

diff -Naur /tmp/foo/_locales/af/messages.json _locales/af/messages.json
--- /tmp/foo/_locales/af/messages.json 2018-09-10 17:27:00.000000000 +0200
+++ _locales/af/messages.json 2018-09-26 14:39:06.581589857 +0200
@@ -27,42 +27,6 @@
"filters_subscription_lastDownload_connectionError": {
"message": "Misluk, aflaai nie voltooi"
},
- "firstRun_abbButtonSubtitle": {
- "message": "Beskikbaar vir Android en iOS"
- },
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
SUMMARY:$500 Billion Broadband Scandal: It’s Time to Break Up AT&T... Ag
ain
DTSTART;TZID=US/Eastern;VALUE=DATE-TIME:20180721T120000
DTEND;TZID=US/Eastern;VALUE=DATE-TIME:20180721T130000
UID:0@hope
DESCRIPTION:America was supposed to be a fiber optic nation and the teleco
m pipes were supposed to be open to all forms of competition. Customers pa
diff -r b615bfdf4897 -r a7309348a8e9 lib/cssInjection.js
--- a/lib/cssInjection.js Thu Sep 14 20:54:34 2017 -0400
+++ b/lib/cssInjection.js Fri Sep 15 11:07:11 2017 -0400
@@ -26,38 +26,20 @@
const {port} = require("messaging");
const devtools = require("devtools");
-let userStylesheetsSupported = true;
-
function hideElements(tabId, frameId, selectors)
diff --git a/webextensions/javascript-apis.json b/webextensions/javascript-apis.json
index 573c227..56438c7 100644
--- a/webextensions/javascript-apis.json
+++ b/webextensions/javascript-apis.json
@@ -187,6 +187,25 @@
"version_added": "33"
}
}
+ },
+ "unmodifiable": {
#!/usr/bin/env python3
import sys
import json
import urllib.request
import urllib.error
import re
from collections import OrderedDict
import bs4
{%- if args["module"] -%}
require.modules["info"] = function(module, exports)
{
var platform = "chromium";
var platformVersion = null;
var application = null;
var applicationVersion;
var regexp = /(\S+)\/(\S+)(?:\s*\(.*?\))?/g;
var match;
/home/sebastian/src/adblockpluschrome/background.js
20:24 error 'require' is not defined no-undef
21:20 error 'require' is not defined no-undef
22:28 error 'require' is not defined no-undef
23:32 error 'require' is not defined no-undef
24:16 error 'require' is not defined no-undef
25:18 error 'require' is not defined no-undef
51:34 error Expected to return a value at the end of this function consistent-return
55:18 error 'ext' is not defined no-undef
63:18 error 'Promise' is not defined no-undef
import tokenize
import sys
import re
re_string = re.compile(r'^([rub]*)([\'"]{1,3})(.*)\2$', re.S)
class Converter:
def __init__(self, filename):
self.filename = filename
self.out = []