Skip to content

Instantly share code, notes, and snippets.

@dan-turner
Last active October 7, 2015 22:08
Show Gist options
  • Save dan-turner/3232415 to your computer and use it in GitHub Desktop.
Save dan-turner/3232415 to your computer and use it in GitHub Desktop.
TripIt Ad Remover - Greasemonkey Script
// ==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);
@dan-turner
Copy link
Author

Already have Greasemonkey/Tampermonkey?

Script URL

Detailed Instructions

Firefox

  • Install Greasemonkey
  • Navigate to the Script URL to bring up the Greasemonkey Installation dialog
  • Choose "Install"

Chrome

  • Install Tampermonkey
  • Navigate to the ScriptURL to open the script in Tampermonkey
  • Choose 'OK' to install the script
  • Choose 'OK' to allow the script for the required domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment