Last active
March 27, 2020 15:08
-
-
Save jtrent238/c5b75166f2f25e02632392f4e822b7d8 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name Adf.ly Ad Blocker | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description shows how to use coffeescript compiler | |
// @author jtrent238 | |
// @require http://coffeescript.org/extras/coffee-script.js | |
// @match http://*/* | |
// ==/UserScript== | |
/* jshint ignore:start */ | |
var inline_src = (<><![CDATA[ | |
<script type="text/javascript"> | |
var adfly_id = 8561947; | |
var adfly_advert = 'none'; | |
var popunder = false; | |
var adfly_nofollow = true; | |
var domains = ['example.com']; | |
</script> | |
<script src="https://cdn.adf.ly/js/link-converter.js"></script> | |
]]></>).toString(); | |
var compiled = this.CoffeeScript.compile(inline_src); | |
eval(compiled); | |
/* jshint ignore:end */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment