- http://www.bitminor.com, http://quixological.blogspot.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); | |
var EXPORTED_SYMBOLS = ["ContentPolicy"]; | |
var ContentPolicy = { | |
classDescription: "Third Party Filtering", //some description | |
classID: Components.ID("dabef210-7f6b-11e0-b278-0800200c9a66"), //UUID. Generated using UUID tool. | |
contractID: "@${app_name}/filter/thirdparty;1", //structure: "@${app_name}/${generic_descriptor}/${name};1" | |
QueryInterface: XPCOMUtils.generateQI( | |
[ Components.interfaces.nsIContentPolicy, | |
Components.interfaces.nsIObserver, | |
Components.interfaces.nsIChannelEventSink, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function read2Buffer(from, to, maxN, offset){ | |
if(!from || !to || !maxN) throw "Invalid Arguments"; | |
from = from.buffer || from; | |
if(from.byteLength) from = new Uint8Array(from); | |
var tot = Math.min((from.length && (from.length - offset)) || (from.available && from.available()), maxN) + offset; | |
for(var i = offset; i < tot; i++){ | |
to[i] = String.fromCharCode(from[i]); | |
} | |
return tot - offset; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><body style="min-height: 50px; margin: 0px; padding: 0px; width: 100%; height: 100%;"> | |
<div class="celtra-ad-v3"> | |
<div style="overflow: hidden; display: block; width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; bottom: auto; right: auto;"> | |
<div id="celtra-banner" class=" celtra-creative-unit celtra-view appeared" style="background-color: rgb(255, 255, 255); overflow: hidden; position: absolute; width: 320px; height: 50px; left: 50%; margin-left: -160px; right: auto; top: 50%; margin-top: -25px; bottom: auto; background-position: initial initial; background-repeat: initial initial;"> | |
<div class="celtra-screen-container" style="position: absolute; width: 100%; height: 100%;"> | |
<div class="celtra-screen-holder" style="width: 100%; height: 100%;"> | |
<div id="celtra-object-2" class=" celtra-screen celtra-screen-object-container celtra-view" style="width: 320px; height: 50px; overflow: hidden; display: none; z-index: -1;"></div> | |
<div id="celtra-object-2" class=" celtra-screen celtra-screen-objec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
.ccc{ background-color: blue; } | |
</style> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function createClass(name,rules){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Combine ( merge ) multiple JS files into a single one. Build JS files using imports. | |
# Use bindings from multiple property files. | |
# | |
# Use @import {file path} to import js files (paste into the current JS in the output). | |
# Pasting occurs at the site of the import statement. | |
# Use ${binding_name} to inject values from a property file when you build | |
# | |
# I chose simplicity and ease of understanding over complexity and featurefull-ness. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __dispatched__ = {}; //Map of previously dispatched preference levels | |
/* First step is to register with the CM API to recieve callbacks when a preference update occurs | |
You must wait for the CM API (PrivacyManagerAPI object) to exist on the page before registering | |
*/ | |
var __i__ = self.postMessage && setInterval(function(){ | |
if(self.PrivacyManagerAPI && __i__){ | |
var apiObject = { PrivacyManagerAPI: | |
{ action:"getConsentDecision", | |
timestamp: new Date().getTime(), |