summaryrefslogtreecommitdiff
path: root/crocoite/data
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/data')
-rw-r--r--crocoite/data/per-site/instagram.js21
1 files changed, 0 insertions, 21 deletions
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);
-}());