PageSourceSearch

https://www.ciudadanos-cs.org/scripts/common/patch-unselectable-ie.js?__v=595_2

js ciudadanos-cs.org collected 2026-10-02 07:12:38 UTC 539 bytes, 22 lines download raw bytes

1$(document).ready(function() {
2	// Fix unselectable
3	if(navigator.userAgent.match(/MSIE \d\.\d+/))
4	{
5		// IE unselectable (and childs..)
6		var makeUnselectableRecursive = function(node) {
7			if (node.nodeType == 1) {
8				if($(node).hasClass('selectable')) {return; }// Stop
9				node.unselectable = true;
10			}
11			var child = node.firstChild;
12			while (child) {
13				makeUnselectableRecursive(child);
14				child = child.nextSibling;
15			}
16		}
17	
18		$('.unselectable').each(function(i,element){
19			makeUnselectableRecursive(element);
20		});
21	}
22});

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.