Giter Site home page Giter Site logo

Handler for Youtube.com about firesheep HOT 5 CLOSED

 avatar commented on July 3, 2024
Handler for Youtube.com

from firesheep.

Comments (5)

clinton4 avatar clinton4 commented on July 3, 2024

Cant get this to work, should it?

from firesheep.

binded-zz avatar binded-zz commented on July 3, 2024

this works just fine i think you need to just remove the # at the end and you will be fine

theres no problems with it that i can see

copy every thing but the last # and goto prefs. and then add site and add the name then edit it and paste every thing above and save and it will work
just fine

from firesheep.

oskvadd avatar oskvadd commented on July 3, 2024

register({
name: "YouTube",
url: 'http://www.youtube.com/',
domains: [ 'youtube.com' ],
sessionCookieNames: ['LOGIN_INFO', 'GEO' ],
identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
this.userName = resp.body.querySelector('span.yt-uix-button-content').innerHTML;
this.siteName = 'YouTube';
var avatar_element;
try {
var profile = this.httpGet('http://www.youtube.com/user/' + this.userName);
avatar_element = profile.body.querySelector('.user-thumb-semismall img');
}
catch(err) {
avatar_element = null;
}
if (avatar_element) {
this.userAvatar = avatar_element.src;
if (this.userAvatar.substr(0, 4) != 'http') {
this.userAvatar = 'http://www.youtube.com' + this.userAvatar;
}
}
}
});

Try this if the above not working

from firesheep.

TerrorFactor avatar TerrorFactor commented on July 3, 2024

The second one works(the first one gives "error" as username).
They both keep adding the same youtube-account tho' :/

from firesheep.

codebutler avatar codebutler commented on July 3, 2024

Please re-open if this handler still works.

from firesheep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.