summaryrefslogtreecommitdiff
path: root/crocoite/data/per-site
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-03-04 14:43:03 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-03-04 14:44:20 +0100
commitd571bed665cee1af6b2212c04791a7a11f18cf7d (patch)
treea44410b7a37c10d499208a824027bd31ea3a940b /crocoite/data/per-site
parentabe8d6e1674f7ac42974422cb9b70cd929bb0fba (diff)
downloadcrocoite-d571bed665cee1af6b2212c04791a7a11f18cf7d.tar.gz
crocoite-d571bed665cee1af6b2212c04791a7a11f18cf7d.tar.bz2
crocoite-d571bed665cee1af6b2212c04791a7a11f18cf7d.zip
Remove instagram behavior script
The “load more” button does not exist any more.
Diffstat (limited to 'crocoite/data/per-site')
-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);
-}());