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 btn = document.getElementById("copy-button"); | |
| btn.addEventListener("click", clickHandler, false); | |
| function clickHandler(e) { | |
| document.exeCommand('copy'); | |
| } |
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 k(aC, aG, aJ) { | |
| var aI, aD, aO, aM, aP, aF = true, aL, Y; | |
| if (aC) { | |
| aI = K(aC) | |
| } else { | |
| return | |
| } | |
| var aN = at().width; | |
| if (aC.get("needs_interstitial")) { | |
| aF = true |
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
| from marionette import Marionette | |
| def set_mozilla_pref(marionette_instance, name, value): | |
| marionette_instance.set_context(marionette_instance.CONTEXT_CHROME) | |
| js = """ | |
| var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); | |
| var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); | |
| str.data = "%s"; | |
| pref.setComplexValue("%s", Components.interfaces.nsISupportsString, str) | |
| """ % (value, name) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head><title>document.write and the back button</title></head> | |
| <body> | |
| <p>FAILED (not ran)</p> | |
| <iframe src="./"></iframe> | |
| <script> | |
| // there is something odd with document.write() and IFRAME | |
| // one immediately, inline | |
| writeIframe('1st time - inline'); |
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 minimizeCSS(){ | |
| var s = document.styleSheets[0].cssRules; | |
| var j=s.length-1, ar=[]; | |
| try{ | |
| for(;j>=0;j--){ | |
| if(document.querySelectorAll(s[j].selectorText).length>0)ar.push(s[j].cssText); | |
| } | |
| }catch(e){ | |
| console.log('error for style #'+j) | |
| } |
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
| // post serialized no-script clone back to debugger | |
| if(true){ // this is just to be able to toggle the dumping off easily | |
| (function noscriptDump(){ | |
| var clone = document.documentElement.cloneNode(true); | |
| var elms = clone.getElementsByTagName('script') | |
| while(elms.length){ | |
| elms[elms.length-1].parentNode.removeChild(elms[elms.length-1]); | |
| } | |
| var html = clone.outerHTML; | |
| var x = new XMLHttpRequest(); |
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
| http://www.in.com/videos/ | |
| http://www.veoh.com/ | |
| http://screen.yahoo.com/ | |
| http://blip.tv/ | |
| http://www.metacafe.com/ | |
| http://www.ovguide.com/ | |
| http://www.nick.com/videos/ | |
| http://www.bharatmovies.com/hindi/songs/bollywood-video-songs.htm | |
| http://www.biography.com/videos | |
| http://www.ndtv.com/video/ |
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(){ | |
| function removeAttr(attr){ | |
| var xpElms = document.evaluate('//*[@'+attr+']', document.documentElement, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE , null ); | |
| var elm; | |
| for(var i=0; elm = xpElms.snapshotItem(i); i++){ | |
| elm.removeAttribute(attr) | |
| } | |
| } | |
| removeAttr('href'); | |
| removeAttr('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
| <?php | |
| if(isset($_GET['pp_init'])){ | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, "https://api-3t.sandbox.paypal.com/nvp"); | |
| $post = "METHOD=SetExpressCheckout&VERSION=93&USER=sdk-three_api1.sdk.com&PWD=QFZCWN5HZM8VBG7Q&SIGNATURE=A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU&PAYMENTREQUEST_0_AMT=5.00&PAYMENTREQUEST_0_CURRENCYCODE=USD&PAYMENTREQUEST_0_PAYMENTACTION=Sale&RETURNURL=http://www.example.org&CANCELURL=http://www.example.org"; | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $post); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |