From 08867e64b644a1a8e32ea5f2bc7569d0ea2c25a2 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 23 Nov 2016 16:43:26 -0500 Subject: [PATCH] remove unused files --- src/document-suspended.html | 12 ---------- src/js/document-suspended.js | 46 ------------------------------------ 2 files changed, 58 deletions(-) delete mode 100644 src/document-suspended.html delete mode 100644 src/js/document-suspended.js diff --git a/src/document-suspended.html b/src/document-suspended.html deleted file mode 100644 index f445eb2ec..000000000 --- a/src/document-suspended.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/js/document-suspended.js b/src/js/document-suspended.js deleted file mode 100644 index 29a979391..000000000 --- a/src/js/document-suspended.js +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - - uBlock Origin - a browser extension to block requests. - Copyright (C) 2016 Raymond Hill - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see {http://www.gnu.org/licenses/}. - - Home: https://github.com/gorhill/uBlock -*/ - -'use strict'; - -/******************************************************************************/ - -(function() { - var matches = /url=([^&]+)/.exec(window.location.search); - if ( matches === null ) { return; } - - var onMessage = function(msg) { - if ( msg.what !== 'ublockOrigin-readyState-complete' ) { - return; - } - vAPI.messaging.removeChannelListener('document-suspended.js', onMessage); - window.location.replace(document.querySelector('body > a').href); - }; - - var link = document.querySelector('body > a'), - url = decodeURIComponent(matches[1]); - link.setAttribute('href', url); - link.appendChild(document.createTextNode(url)); - - vAPI.messaging.addChannelListener('document-suspended.js', onMessage); -})(); - -/******************************************************************************/