PageSourceSearch

https://www.owlstalk.co.uk/forums/uploads/javascript_core/plugins_plugins.js?v=8d9b1e25d11790927250

js owlstalk.co.uk collected 2026-10-02 14:55:21 UTC 4,152 bytes, 16 lines download raw bytes

1;(function($,_,undefined){"use strict";ips.controller.register('plugins.minimizequote',{initialize:function(){if($('.ipsQuote').length){var quoteColor=$('.ipsQuote').css('backgroundColor');if(quoteColor.indexOf('rgba')===-1){var fromColor=quoteColor.replace('rgb','rgba').replace(')',', 0)');var toColor=quoteColor.replace('rgb','rgba').replace(')',', 1)');var css=document.createElement("style");css.type="text/css";css.innerHTML="div.ipsQuote_contents.ipsTruncate:not(.ipsTruncate_expanded):after { background: linear-gradient( "+fromColor+", "+toColor+"); -webkit-transition: opacity 0.5s ease; -moz-transition: opacity 0.5s ease; transition: opacity 0.5s ease; pointer-events: none; content: ''; width: 100%; height: 50px; position: absolute; left: 0; bottom: 0; visibility: visible; }";document.body.appendChild(css);}}
2this.minimizeQuotes();var that=this;$(document).on('contentChange',function(e,newContent){if(newContent instanceof jQuery){newContent.each(function(){if(_.isUndefined($(this).attr('data-ipseditor'))&&$(this).parents('.cke_wysiwyg_div').length==0){that.minimizeQuotes();}});}
3else
4{if(_.isUndefined($(newContent).attr('data-ipseditor'))&&$(newContent).parents('.cke_wysiwyg_div').length==0){that.minimizeQuotes();}}
5if(typeof PR!='undefined'){PR.prettyPrint();}});if(!_.isUndefined(window.CKEDITOR)){this.fixEditorQuotes();}},loadTries:0,fixEditorQuotes:function(){if((!CKEDITOR||_.isUndefined(CKEDITOR.on))&&this.loadTries<60){this.loadTries++;setTimeout(_.bind(this.fixEditorQuotes,this),50);return;}
6CKEDITOR.on('afterInsertHtml',this.doFixEditorQuotes);},doFixEditorQuotes:function(e){var editorContent=$("<div id='specialwrapperthing'>"+e.editor.getData()+"</div>");if(editorContent){$('.ipsTruncate_more',$(editorContent)).remove();$('.ipsQuote_contents',$(editorContent)).each(function(){$(this).removeClass('ipsTruncate ipsClearfix');if($(this).prop('style')['height']!==""||!_.isUndefined($(this).attr('data-minimizedQuoteWasHere'))){Debug.log('Fixing a messed up quote');$(this).removeAttr('style').removeAttr('data-minimizedQuoteWasHere');}});Debug.log(editorContent);e.editor.setData($(editorContent).html());}},minimizeQuotes:function(){var that=this;var size=parseInt(ips.getSetting('minimizeQuote_size'));var commentIds=[];$('blockquote[data-ipsquote]').each(function(){var quoteContentsDiv=$(this).children('.ipsQuote_contents');if(!quoteContentsDiv.length){var citation=$(this).children('.ipsQuote_citation');$(this).children().wrapAll("<div class='ipsQuote_contents' />");if(citation.length>0){citation.detach();$(this).prepend(citation);}
7quoteContentsDiv=$(this).children('.ipsQuote_contents');}
8if((!_.isUndefined($(quoteContentsDiv).prop('style'))&&$(quoteContentsDiv).prop('style')['height']!=='')||!_.isUndefined($(quoteContentsDiv).attr('data-minimizedQuoteWasHere'))){if($(quoteContentsDiv).prop('style')['height']=='auto'&&$(quoteContentsDiv).prop('style')['position']=='static'&&$(quoteContentsDiv).hasClass('ipsTruncate_expanded')){Debug.log("We've just expanded this one");return;}
9Debug.log('Fixing messed up quote');$(quoteContentsDiv).removeAttr('style').removeAttr('data-minimizedQuoteWasHere').removeClass('ipsTruncate ipsClearfix');$(this).children('.ipsTruncate_more').remove();}
10Debug.log($(quoteContentsDiv));if(!_.isUndefined($(quoteContentsDiv).attr('data-ipseditor'))||$(this).closest('.ipsComposeArea').length||!_.isUndefined($(quoteContentsDiv).attr('contenteditable'))||$(this).parents('.cke_wysiwyg_div').length){Debug.log('In editor');return;}
11$(quoteContentsDiv).attr('data-minimizedQuoteWasHere',1);if(parseInt(ips.getSetting('minimizeQuote_showFirstAppear'))==1){var quoteCommentId=parseInt($(this).attr('data-ipsquote-contentcommentid'));if($.inArray(quoteCommentId,commentIds)!==-1||$('div [data-commentid="'+quoteCommentId+'"]').length>0){ips.ui.truncate.respond($(quoteContentsDiv),{type:'hide',size:size+' lines'});}
12else
13{commentIds.push(quoteCommentId);}}
14else
15{ips.ui.truncate.respond($(quoteContentsDiv),{type:'hide',size:size+' lines'});}
16$(quoteContentsDiv).on('truncateExpanded',function(){$(quoteContentsDiv).addClass('ipsTruncate_expanded');})});}});}(jQuery,_));;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.