I hereby claim:
- I am darcyclarke on github.
- I am darcyclarke (https://keybase.io/darcyclarke) on keybase.
- I have a public key ASD4yo0sZAq8GW7-sMMPykFBSvT1luv3MwlvIVmXrBeRLQo
To claim this, I am signing this object:
| # -------------------------------------- | |
| # Setup | |
| # -------------------------------------- | |
| server = false | |
| fs = require( 'fs' ) | |
| path = require( 'path' ) | |
| _ = require( 'underscore' ) | |
| wrench = require( 'wrench' ) |
| /*! | |
| * | |
| * Get Clean window & DOM Objects | |
| * http://darcyclarke.me/articles/development/getting-a-clean-document-or-window-object-in-javascript/ | |
| * | |
| * Copyright 2016, Darcy Clarke | |
| * Do what you want license | |
| * | |
| */ | |
| (function(){ |
| <?php | |
| /***********************************************/ | |
| /* PHP Strip Function | |
| /* http://darcyclarke.me/articles/development/strip-out-text-between-two-tags-in-a-string-php/ | |
| /* | |
| /* Copyright 2016, Darcy Clarke | |
| /* Do what you want license | |
| /***********************************************/ | |
| function strip($startTag,$endTag,$text,$pos=0){ | |
| if(!is_integer($pos)){ |
| /*! | |
| * | |
| * Library Agnostic Pubsub | |
| * http://darcyclarke.me/articles/development/library-agnostic-pubsub-publish-subscribe/ | |
| * | |
| * Copyright 2016, Darcy Clarke | |
| * Do what you want license... | |
| * | |
| */ | |
| (function(window){ |
| <?php | |
| /***********************************************/ | |
| /* Get a Youtube or Vimeo video's Thumbnail from a URL | |
| /* http://darcyclarke.me/articles/development/get-image-for-youtube-or-vimeo-videos-from-url/ | |
| /* | |
| /* Copyright 2016, Darcy Clarke | |
| /* Do what you want license | |
| /***********************************************/ | |
| function video_image($url){ | |
| $image_url = parse_url($url); |
| /*! | |
| * Animate Floats jQuery Plugin | |
| * http://darcyclarke.me/articles/development/animate-float-positions-in-jquery-1-5/ | |
| * | |
| * Copyright 2016, Darcy Clarke | |
| * Do what you want license | |
| */ | |
| (function(window, $){ | |
| var $plugin = $.sub(); | |
| $plugin.fn.animate = function(props, speed, cb){ |
| /*! | |
| * | |
| * jQuery :missing Plugin | |
| * http://darcyclarke.me/articles/development/find-elements-that-dont-contain-a-string/ | |
| * | |
| * Copyright 2016, Darcy Clarke | |
| * Do what you want license | |
| * | |
| */ | |
| jQuery.expr[':'].missing = function(elem, index, match) { |
| # |
I hereby claim:
To claim this, I am signing this object:
| // Updated & working as of March 24th, 2020 | |
| ;(() => { | |
| function removeAds() { | |
| Array.from(document.querySelectorAll('[id^=feed_sub_title], [data-testid^=story-subtilte], [data-pagelet^=FeedUnit]')) | |
| .map(e => { | |
| let content = e.innerText | |
| let dynamic = Array.from(e.querySelectorAll('span:not([data-content=""])')) | |
| .filter(e => e.style.display != 'none') | |
| .map(e => { | |
| let hidden = window.getComputedStyle(e, ':before').getPropertyValue('content') |