Безопасный код? скрипт
greasyfork.org/en/scripts... imdb ※ чистые ссылки (включает в себя историю/посещение государства)
очистите ссылки imdb, чтобы любая посещенная страница была зарегистрирована в истории вашего браузера.
внутри кода ссылка и там еще код намного больше подозрительно
ajax.googleapis.com/ajax/... // ==userscript==
// @name imdb ※ clean links (enables history/visited state)
// @namespace
tampermonkey.net/ // @version 0.13
// @description clean imdb links so that any visited page is registered in your browser's history.
// @author oscar kameoka — kitsunedev —
www.kitsune.work // @include https://*.imdb.com/*
// @include http://*.imdb.com/*
// @grant none
// @require
ajax.googleapis.com/ajax/... // ==/userscript==
(function() {
'use strict';
//
// clean each link
//
$(document).ready(function() {
$('a').each(function() {
if ($(this).attr('href')) {
// ignore if link is to external site
var linkhref = $(this).attr('href');
var linkurl = linkhref.split('?');
var linkclean = linkurl[0];
// if link is to external skip it
if (linkurl.indexof('imdb.com') !== -1) {
$(this).attr('href', linkclean);
} else {
// append imdb domain to link
// if) href begins with a slash
if (linkclean[0] === '/') {
$(this).attr('href', '
www.imdb.com' + linkclean);
} else {
$(this).attr('href', '
www.imdb.com/' + linkclean);
}
}
// for external websites (if: full link and not imdb's)
if (linkurl.indexof('http')) {
$(this).attr('href', linkclean);
}
}
});
});
})();