Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "[LinkedMedia]": {
- "link": "^[^?#]{6,4096}\\.(?:jp(?:g|eg?)|heic|3gp|a?png|gif|web[pm]|bmp|xbm|pict|j(?:if|fif?)|flv|m2ts|mkv|mov|mpeg|mpg|og[gv]|mp[34]|m4[va]|svgz?|ts|rm|wm[va])(?:$|[?#]).*",
- "ci": 3,
- "img": "^[^?#]{6,4096}\\.(?:jp(?:g|eg?)|heic|3gp|a?png|gif|web[pm]|bmp|xbm|pict|j(?:if|fif?)|flv|m2ts|mkv|mov|mpeg|mpg|og[gv]|mp[34]|m4[va]|svgz?|ts|rm|wm[va]|avif)(?:$|[?#]).*",
- "to": ":\nconst disable_on_video = false\n\nif (location.hostname === 'www.google.com') return '';\nconst n = this.node;\nif ( disable_on_video && n?.nodeName === 'VIDEO') return '';\nif (!disable_on_video && n?.nodeName === 'VIDEO') n.title = 'Imagus activating on videos can be disabled in the [LinkedMedia] sieve';\n\nif (!RegExp.prototype.test_original) {\n /* workaround for Imagus bug, force RexExp.test to ignore case */\n RegExp.prototype.test_original = RegExp.prototype.test;\n RegExp.prototype.test = function(str) {\n if (this.source?.startsWith(\"^[^?#]+\\\\.\")) {\n return (new RegExp(this.source, 'i')).test_original(str)\n } else {\n return this.test_original(str)\n }\n }\n}\n\n// width and height of the tagret element should be more that 39px\nif (this.TRG?.localName !== 'a' && \n this.TRG?.clientWidth && this.TRG?.clientWidth < 45 && \n this.TRG?.clientHeight && this.TRG?.clientHeight < 45)\n{\n return '';\n}\n\n// Imagus fix\nif (this.TRG?.hasAttribute(\"src\") && !this.TRG.src) {\n this.TRG.src = this.TRG.getAttribute(\"src\");\n}\n\nreturn $[0];",
- "note": "hababr\nhttps://github.com/hababr/Imagus-Reborn/issues/39#issuecomment-3939200740\nOLD\nhttps://www.reddit.com/r/imagus/comments/1f4dxjw/comment/lkty6h3\nhttps://www.reddit.com/r/imagus/comments/1em6o9c/comment/lgwseyq\n\n\n\n!!!\nЭтот универсальный фильтр реагирует на расширения файлов в ссылках и пытается загрузить изображение, если находит ссылку на медиафайл.\n==\nThis universal sieve reacts to file extensions on links and tries to launch Imagus if it finds a link to a media file.\n\n\nEXAMPLES\nhttps://www.photo.net/search/?q=yellow&quick=1\nhttps://code.visualstudio.com/updates/v1_87"
- }
- }
Add Comment
Please, Sign In to add comment