Skip to content

Instantly share code, notes, and snippets.

@jtrent238
Last active March 27, 2020 15:08
Show Gist options
  • Save jtrent238/c5b75166f2f25e02632392f4e822b7d8 to your computer and use it in GitHub Desktop.
Save jtrent238/c5b75166f2f25e02632392f4e822b7d8 to your computer and use it in GitHub Desktop.
// ==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