191687/jquery-only-append-to-child
Please help me to understand why it's doing that :o
// ==UserScript== // @name GMod Cinema Porn // @namespace Bluscream // @version 1.0 // @description H3H3 // @author Bluscream // @include https://www.youtube.com/embed/OiMTuwS3xvg* // @include http://cinema.pixeltailgames.com/search.html // @include * // @grant unsafeWindow // @grant GM_xmlhttpRequest // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js // @run-at document-end // ==/UserScript== (function() { 'use strict'; if (window.location.href.startsWith("https://www.youtube.com/embed/OiMTuwS3xvg")) { window.location.href = "http://embed.redtube.com/player/?id=42019&autostart=true"; } else if (window.location.href == "http://cinema.pixeltailgames.com/search.html"){ $ = jQuery || $; $( document ).ready(function() { temop = $('#content-container').children('div[style="text-align:center;font-size:0;"]:first'); temop.append('<service>').css('background-image', 'url("http://cdn1-www.craveonline.com/assets/uploads/2013/12/man_file_1048340_youporn-icon.png")').click(function () { window.selectService("YouPorn", "http:\/\/www.youporn.com"); }).hover(function () { window.hoverService(); }); }); //$('#content-container>div[style="text-align:center;font-size:0;"]').append('<service style=\'background-image:url(\"logos\/youtube.png\")\' onclick=\'selectService(\"YouTube\",\"http:\/\/www.youtube.com\")\' onmouseover="hoverService()">-</service>'); } })();
I am currently doing a regex comparison ...READ MORE
Hello @kartik, You don't need to do this ...READ MORE
You were just missing a css class that adjusts ...READ MORE
Yes, we can use jQuery in ReactJs. ...READ MORE
You need to animate the html, body $("#button").click(function() { ...READ MORE
Perform a AJAX GET request to get ...READ MORE
If you weren't aware, Microsoft is planning ...READ MORE
I suggest you to check 2 things That jquery.sparkline.js is actually ...READ MORE
Hey, jQuery is a fast and concise JavaScript ...READ MORE
Hey kartik, A variable declared outside a function has a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.