From d571bed665cee1af6b2212c04791a7a11f18cf7d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 4 Mar 2018 14:43:03 +0100 Subject: Remove instagram behavior script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The “load more” button does not exist any more. --- crocoite/data/per-site/instagram.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 crocoite/data/per-site/instagram.js (limited to 'crocoite/data') diff --git a/crocoite/data/per-site/instagram.js b/crocoite/data/per-site/instagram.js deleted file mode 100644 index da7b5ea..0000000 --- a/crocoite/data/per-site/instagram.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Fixups for instagram: searches for the “show more” button and clicks it - */ -(function(){ -function fixup () { - var links = document.querySelectorAll ("main a"); - for (var i = 0; i < links.length; i++) { - var href = links[i].getAttribute ("href"); - if (href.search (/\?max_id=\d+$/) != -1) { - var click = new MouseEvent('click', { - view: window, - bubbles: true, - cancelable: true - }); - console.log ('clicking', href); - links[i].dispatchEvent (click); - break; - } - } -} -window.addEventListener("load", fixup); -}()); -- cgit v1.2.3