This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function wordFound($palabra,$cadena){ | |
| return preg_match("/(( )$palabra( ))|^($palabra)$|^($palabra( ))|(( )$palabra$)/",$cadena); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function removeWord($palabra,$cadena){ | |
| $resultado = preg_replace("/^($palabra)$/", ' ', $cadena); | |
| $resultado = preg_replace("/(( )$palabra( ))/", ' ', $resultado); | |
| $resultado = preg_replace("/(( )$palabra$)/", ' ', $resultado); | |
| $resultado = preg_replace("/(^$palabra( ))/", ' ', $resultado); | |
| return $resultado; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ver="1.0",doc=document,body=doc.body,head=doc.head,ndef,udef=void 0,newElement=function(){var c,b=arguments;if("string"==typeof b[0]&&(c=doc.createElement(b[0])),"object"==typeof b[1])for(a in b[1])c.setAttribute(a,b[1][a]);else"function"==typeof b[1]&&2==b.length&&b[1]();return"string"==typeof b[2]?c.textContent=b[2]:"object"==typeof b[2]&&c.appendChild(b[2]),4==b.length&&"function"==typeof b[3]&&b[3](),c},e=newElement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * by Jason.scz@gmail.com | |
| */ | |
| var app = {}; | |
| app.req = { | |
| bar : { | |
| o:document.getElementById("myBar"), | |
| size:0 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var oa = document.createElement('a'); | |
| oa.href="";oa.type="application/octet-stream";oa.download="named"; | |
| document.body.append(oa); | |
| var imageList = document.getElementsByClassName('image-thumb-body'); | |
| /* Donwload Images */ | |
| for ( x in imageList ) { | |
| if (typeof imageList[x] == 'number') break; | |
| var o = imageList[x]; | |
| oa.href = o.src; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rev = function(){ | |
| var e = arguments[0]; | |
| if( e!=undefined || e != null ){ | |
| console.log('-----------------------------') | |
| console.log('Name: '+e.name) | |
| console.log('Type: '+typeof(e)) | |
| console.log('-------- Properties ---------') | |
| for( n in e ){ | |
| console.log(n+':'+typeof(e[n])) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.stringToFile = function(content,name){ | |
| var o = document.createElement('a'); | |
| o.type = 'application/octet-stream'; | |
| o.target = '_blank'; | |
| o.download = name; | |
| o.href = URL.createObjectURL(new Blob([content],{type:'text/plain'})) | |
| console.log('Downloading ..'); | |
| o.click(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Constructor | |
| # Muestra la funcion del constructor a la que pertenece dicho objeto | |
| Objetc.consturctor | |
| # Prototype | |
| # Muestra la lista de propiedades y metodos del objeto sin haber sido inicializado | |
| # Toda modificacion que se realice en el objeto se hereda a los objetos que hereden este objeto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var glob = window | |
| var doc = document | |
| var page = doc.body | |
| Document.prototype.__defineGetter__( 'list', function(){ return this.children } ) | |
| HTMLHtmlElement.prototype.__defineGetter__( 'list', function(){ return this.children } ) | |
| HTMLBodyElement.prototype.__defineGetter__( 'list', function(){ return this.children } ) | |
| HTMLDivElement.prototype.__defineGetter__( 'list', function(){ return this.children } ) | |
| HTMLFormElement.prototype.__defineGetter__( 'list', function(){ return this.children } ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Instrucciones | |
| // Ctrl + Shift + C | |
| // Click en cualquier elemento | |
| // Seleccionar pestaña Consola | |
| // Pegar el script y presionar Enter | |
| // Cerra la ventana y podes usar los atajos de las teclas siguientes: | |
| // Ctrl + z :: Full Screen | |
| // Ctrl + x :: Hiden Options | |
| // Ctrl + c :: Show Options |