Skip to content

Instantly share code, notes, and snippets.

@vcsjones
Created April 8, 2016 17:59
Show Gist options
  • Save vcsjones/a00c84e84fe89f0f7ca6c5406970f22f to your computer and use it in GitHub Desktop.
Save vcsjones/a00c84e84fe89f0f7ca6c5406970f22f to your computer and use it in GitHub Desktop.
Untoaster
"use strict";
document.addEventListener('DOMContentLoaded', () => {
const frame = document.getElementById('target-frame');
if (frame && frame.src) {
const source = frame.src;
frame.parentElement.removeChild(frame);
window.location.href = source;
}
});
{
"manifest_version": 2,
"name": "Untoaster",
"version": "0.1",
"description": "Removes SocialToaster from your browsing experience.",
"author": "Kevin Jones",
"minimum_chrome_version": "45",
"content_scripts": [
{
"run_at": "document_start",
"matches": ["*://my.socialtoaster.com/*"],
"js": ["breakout.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment