您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clean IMDB links so that any visited page is registered in your browser's history.
当前为
// ==UserScript== // @name IMDB ※ Clean Links (Enables History/Visited State) // @namespace http://tampermonkey.net/ // @version 0.12 // @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 https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js // ==/UserScript== (function() { 'use strict'; // // CLEAN EACH LINK // $(document).ready(function() { $('a').each(function (){ if($(this).attr('href')){ var linkURL = $(this).attr('href').split('?'); // IF LINK IS NOT DIRECT APPEND HTTPS://WWW.IMDB.COM | IE: '/title/..' if(linkURL.indexOf('imdb.com') !== -1){ $(this).attr('href', linkURL[0]); } else { $(this).attr('href', 'https://www.imdb.com'+linkURL[0]); } } }); }); })();