Changeset 3463936
- Timestamp:
- 02/18/2026 05:16:40 AM (5 weeks ago)
- Location:
- wonderplugin-pdf-embed/trunk
- Files:
-
- 3 edited
-
pdfjs/web/pdf.customise.js (modified) (1 diff)
-
pdfjslight/web/pdf.customise.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wonderplugin-pdf-embed/trunk/pdfjs/web/pdf.customise.js
r3463934 r3463936 3 3 "disabletoolbar"&&value[1]==1)disabletoolbar=1;else if(value[0]=="disablerightclick"&&value[1]==1)disablerightclick=1;else if(value[0]=="textselection"&&value[1]&&value[1].trim()!=="")textselection=sanitizeColor(value[1].trim());else if(value[0]=="texthighlight"&&value[1]&&value[1].trim()!=="")texthighlight=sanitizeColor(value[1].trim());else if(value[0]=="texthighlightselected"&&value[1]&&value[1].trim()!=="")texthighlightselected=sanitizeColor(value[1].trim());else if(value[0]=="externallinktarget"&& 4 4 parseInt(value[1])>0&&parseInt(value[1])<=4)externallinktarget=parseInt(value[1]);else if(value[0]=="gaaccount")gaaccount=value[1].trim();else if(value[0]=="file")pdfurl=value[1]}var extracss="";if(disabledownload)extracss+=" .download {display:none!important;}";if(disableprint)extracss+=" .print {display:none!important;}";if(disabletext)extracss+=" .textLayer {-webkit-touch-callout: none !important; -webkit-user-select: none !important; -khtml-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important;} .selectTool { display: none !important;}"; 5 if(disabledoc)extracss+=" #documentProperties {display:none !important;}";if(disableopenfile)extracss+=" #openFile {display:none !important;}";if(disabletoolbar)extracss+=" #toolbarContainer {display:none !important;} #viewerContainer {top:8px !important;}";if(textselection)extracss+=" .textLayer ::selection { background: "+textselection+" ; }";if(texthighlight)extracss+=" .textLayer .highlight { background-color: "+texthighlight+"; }";if(texthighlightselected)extracss+=" .textLayer .highlight.selected { background-color: "+6 texthighlightselected+" ; }";if(extracss){var style=document.createElement("style");style.type="text/css";style.innerHTML=extracss;document.getElementsByTagName("head")[0].appendChild(style)}if(disablerightclick)$("body").on("contextmenu","#viewerContainer",function(){return false});if(typeof PDFViewerApplication!="undefined"&&externallinktarget>0&&externallinktarget<=4)PDFViewerApplication.preferences.set("externalLinkTarget",externallinktarget);if(gaaccount&&gaaccount.length>0){window._gaq=window._gaq||7 [];window._gaq.push(["_setAccount",gaaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js");$(document).on("click",".download",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Download",pdfurl])});$(document).on("click",".print",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Print",pdfurl])})}$(document).bind("pagerendered",function(e){if(disabledownload)$(".download").remove();if(disableprint)$(".print").remove();if(disabletext){$(".selectTool").remove();8 $(".textLayer").remove();if(PDFViewerApplication)PDFViewerApplication.pdfCursorTools.switchTool(1)}if(disabledoc){$(".documentProperties").prev(".horizontalToolbarSeparator").remove();$(".documentProperties").remove()}if(disableopenfile)$(".openFile").remove();if(disabletoolbar)$("#toolbarContainer").remove()})})})(jQuery);5 if(disabledoc)extracss+=" #documentProperties {display:none !important;}";if(disableopenfile)extracss+=" #openFile {display:none !important;}";if(disabletoolbar)extracss+=" #toolbarContainer {display:none !important;} #viewerContainer {top:8px !important;}";if(textselection)extracss+=" .textLayer ::selection { background: "+textselection+"!important; }";if(texthighlight)extracss+=" .textLayer .highlight { background-color: "+texthighlight+"!important; }";if(texthighlightselected)extracss+=" .textLayer .highlight.selected { background-color: "+ 6 texthighlightselected+"!important; }";if(extracss){var style=document.createElement("style");style.type="text/css";style.innerHTML=extracss;document.getElementsByTagName("head")[0].appendChild(style)}if(disablerightclick)$("body").on("contextmenu","#viewerContainer",function(){return false});if(typeof PDFViewerApplication!="undefined"&&externallinktarget>0&&externallinktarget<=4)PDFViewerApplication.preferences.set("externalLinkTarget",externallinktarget);if(gaaccount&&gaaccount.length>0){window._gaq= 7 window._gaq||[];window._gaq.push(["_setAccount",gaaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js");$(document).on("click",".download",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Download",pdfurl])});$(document).on("click",".print",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Print",pdfurl])})}$(document).bind("pagerendered",function(e){if(disabledownload)$(".download").remove();if(disableprint)$(".print").remove(); 8 if(disabletext){$(".selectTool").remove();$(".textLayer").remove();if(PDFViewerApplication)PDFViewerApplication.pdfCursorTools.switchTool(1)}if(disabledoc){$(".documentProperties").prev(".horizontalToolbarSeparator").remove();$(".documentProperties").remove()}if(disableopenfile)$(".openFile").remove();if(disabletoolbar)$("#toolbarContainer").remove()})})})(jQuery); -
wonderplugin-pdf-embed/trunk/pdfjslight/web/pdf.customise.js
r3463934 r3463936 3 3 "disabletoolbar"&&value[1]==1)disabletoolbar=1;else if(value[0]=="disablerightclick"&&value[1]==1)disablerightclick=1;else if(value[0]=="textselection"&&value[1]&&value[1].trim()!=="")textselection=sanitizeColor(value[1].trim());else if(value[0]=="texthighlight"&&value[1]&&value[1].trim()!=="")texthighlight=sanitizeColor(value[1].trim());else if(value[0]=="texthighlightselected"&&value[1]&&value[1].trim()!=="")texthighlightselected=sanitizeColor(value[1].trim());else if(value[0]=="externallinktarget"&& 4 4 parseInt(value[1])>0&&parseInt(value[1])<=4)externallinktarget=parseInt(value[1]);else if(value[0]=="gaaccount")gaaccount=value[1].trim();else if(value[0]=="file")pdfurl=value[1]}var extracss="";if(disabledownload)extracss+=" .download {display:none!important;}";if(disableprint)extracss+=" .print {display:none!important;}";if(disabletext)extracss+=" .textLayer {-webkit-touch-callout: none !important; -webkit-user-select: none !important; -khtml-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important;} .selectTool { display: none !important;}"; 5 if(disabledoc)extracss+=" #documentProperties {display:none !important;}";if(disableopenfile)extracss+=" #openFile {display:none !important;}";if(disabletoolbar)extracss+=" #toolbarContainer {display:none !important;} #viewerContainer {top:8px !important;}";if(textselection)extracss+=" .textLayer ::selection { background: "+textselection+" ; }";if(texthighlight)extracss+=" .textLayer .highlight { background-color: "+texthighlight+"; }";if(texthighlightselected)extracss+=" .textLayer .highlight.selected { background-color: "+6 texthighlightselected+" ; }";if(extracss){var style=document.createElement("style");style.type="text/css";style.innerHTML=extracss;document.getElementsByTagName("head")[0].appendChild(style)}if(disablerightclick)$("body").on("contextmenu","#viewerContainer",function(){return false});if(typeof PDFViewerApplication!="undefined"&&externallinktarget>0&&externallinktarget<=4)PDFViewerApplication.preferences.set("externalLinkTarget",externallinktarget);if(gaaccount&&gaaccount.length>0){window._gaq=window._gaq||7 [];window._gaq.push(["_setAccount",gaaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js");$(document).on("click",".download",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Download",pdfurl])});$(document).on("click",".print",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Print",pdfurl])})}$(document).bind("pagerendered",function(e){if(disabledownload)$(".download").remove();if(disableprint)$(".print").remove();if(disabletext){$(".selectTool").remove();8 $(".textLayer").remove();if(PDFViewerApplication)PDFViewerApplication.pdfCursorTools.switchTool(1)}if(disabledoc){$(".documentProperties").prev(".horizontalToolbarSeparator").remove();$(".documentProperties").remove()}if(disableopenfile)$(".openFile").remove();if(disabletoolbar)$("#toolbarContainer").remove()})})})(jQuery);5 if(disabledoc)extracss+=" #documentProperties {display:none !important;}";if(disableopenfile)extracss+=" #openFile {display:none !important;}";if(disabletoolbar)extracss+=" #toolbarContainer {display:none !important;} #viewerContainer {top:8px !important;}";if(textselection)extracss+=" .textLayer ::selection { background: "+textselection+"!important; }";if(texthighlight)extracss+=" .textLayer .highlight { background-color: "+texthighlight+"!important; }";if(texthighlightselected)extracss+=" .textLayer .highlight.selected { background-color: "+ 6 texthighlightselected+"!important; }";if(extracss){var style=document.createElement("style");style.type="text/css";style.innerHTML=extracss;document.getElementsByTagName("head")[0].appendChild(style)}if(disablerightclick)$("body").on("contextmenu","#viewerContainer",function(){return false});if(typeof PDFViewerApplication!="undefined"&&externallinktarget>0&&externallinktarget<=4)PDFViewerApplication.preferences.set("externalLinkTarget",externallinktarget);if(gaaccount&&gaaccount.length>0){window._gaq= 7 window._gaq||[];window._gaq.push(["_setAccount",gaaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js");$(document).on("click",".download",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Download",pdfurl])});$(document).on("click",".print",function(){if(window._gaq)window._gaq.push(["_trackEvent","PDF","Print",pdfurl])})}$(document).bind("pagerendered",function(e){if(disabledownload)$(".download").remove();if(disableprint)$(".print").remove(); 8 if(disabletext){$(".selectTool").remove();$(".textLayer").remove();if(PDFViewerApplication)PDFViewerApplication.pdfCursorTools.switchTool(1)}if(disabledoc){$(".documentProperties").prev(".horizontalToolbarSeparator").remove();$(".documentProperties").remove()}if(disableopenfile)$(".openFile").remove();if(disabletoolbar)$("#toolbarContainer").remove()})})})(jQuery); -
wonderplugin-pdf-embed/trunk/readme.txt
r3463934 r3463936 97 97 == Changelog == 98 98 99 = 3.0 = 100 Support customizing the colors for text highlight, and selected text highlight 101 99 102 = 2.9 = 100 Support customizing the colors for text selection , text highlight, and selected text highlight103 Support customizing the colors for text selection 101 104 102 105 = 2.8 =
Note: See TracChangeset
for help on using the changeset viewer.