// ==UserScript== // @name Cinematik Enhancer // @namespace surrealmoviez.info // @description Display changes for Cinematik // @include https://www.cinematik.net/details.php?id=* // @include https://www.cinematik.net/upload.php // @require https://code.jquery.com/jquery-3.2.0.min.js // @version 1.1.0 // @grant none // @downloadURL none // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); $(document).ready(function() { if (document.location.pathname === "/details.php") { // Add a link to IMDb next to every listed IMDb ID $('.pbox2_table').each(function() { console.log('one box'); let $imdbLink = $(this).find('.gr_vsep3 .awom').first(); let imdbID = $imdbLink.text(); // Make sure that we have something that looks like an ID if (!/^\d+$/.test(imdbID)) { return true; } $imdbLink.after( '' + ' 🔗' + '' ); }); } else if (document.location.pathname === "/upload.php") { // Add shortcut to check all "Understand?" requirements prior to upload $('td.outer > form').prepend( '