Last active
October 7, 2015 22:08
-
-
Save dan-turner/3232415 to your computer and use it in GitHub Desktop.
TripIt Ad Remover - Greasemonkey Script
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 TripIt Ad Remover | |
// @namespace #DanTurner | |
// @description For users of Tripit. | |
// @include http://www.tripit.com/* | |
// @version 1.0.1 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @homepage https://gist.github.com/dan-turner/3232415 | |
// @updateURL https://gist.github.com/dan-turner/3232415/raw/TripIt-Ad-Remover.user.js | |
// ==/UserScript== | |
var removeAds = function () { | |
var ads = $('.sidebar_module div, #content .fRt div').filter(function() { | |
return $(this).text() === 'Advertisement'; | |
}); | |
ads.next().remove(); | |
ads.remove(); | |
$('.colWdtSkyAds, .inlineTripCompleter, #trip_deals_box').remove(); | |
} | |
removeAds(); | |
setInterval(removeAds,1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already have Greasemonkey/Tampermonkey?
Script URL
Detailed Instructions
Firefox
Chrome