Some beautifications

This commit is contained in:
Kevin Röbert
2020-01-06 17:15:58 +01:00
parent 0417469a26
commit ccdca3b595
2 changed files with 12 additions and 7 deletions

View File

@@ -14,6 +14,12 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Based on:
* Remove Google Redirection
* https://github.com/kodango/Remove-Google-Redirection/blob/master/extension/chrome/remove-google-redirection.user.js
* Copyright (c) 2017 kodango
* MIT License: https://github.com/kodango/Remove-Google-Redirection/blob/master/LICENSE
*/
(function (window) {
"use strict";
@@ -35,8 +41,7 @@
/*
* The main entry
*/
function main()
{
function main() {
injectFunction();
document.addEventListener('mouseover', function (event) {
@@ -50,7 +55,7 @@
try {
a.removeAttribute('data-counter');
delete a.dataset.cthref;
} catch(e) {
} catch (e) {
console.log(e);
}
}