Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
Seiten: [1]   Nach unten
Drucken
Dieses Topic wurde noch nicht bewertet!
Du hast noch keine Bewertung für diesen Topic abgegeben. Bitte Bewertung wählen:
Autor Thema: pornhost greasemonkey script  (Gelesen 6700 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
belarcos
Newbie
*

TLO-Points: 45
Germany Germany

Beiträge: 3
Referrals: 0


« am: 07. Mai 2009, 05:43:35 »

Hi,

I have written an userscript for pornhost that automatically scales the video to fullscreen and hides everything but the file information box - maybe this is helpful. You need the greasemonkey firefox extension (https://addons.mozilla.org/en-US/firefox/addon/748). To install open pornhost, click on the greasemonkey icon, select "new user script..." and paste in the code below.

// ==UserScript==
// @name           pornhost fullscreen
// @namespace      test
// @include        http://www.pornhost.com/*
// ==/UserScript==

function doit() {
   var allLinks, thisLink, box;
   allLinks = document.evaluate('//fieldset',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
   for (var i = 0; i < allLinks.snapshotLength; i++) {
      box = allLinks.snapshotItem(i).innerHTML;
      box=box.replace(/
/g,'');
      box=box.replace(/<label.+?>/g,'');
   }
   allLinks = document.evaluate('//div',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
   for (var i = 0; i < allLinks.snapshotLength; i++) {
      thisLink = allLinks.snapshotItem(i);
      if (thisLink.innerHTML.indexOf('flashmovie')>=0) {
         var newLink=thisLink.innerHTML.replace(/480/g,'1051');
         newLink=newLink.replace(/379/g,'800');
         
         newLink=newLink.replace(/mpl/g,'');
         newLink=newLink.replace(/flashmovie/g,'');
         document.body.innerHTML=newLink;
         var boxDiv=document.createElement('span');
         boxDiv.innerHTML=box;
         document.body.firstChild.parentNode.insertBefore(boxDiv, document.body.firstChild);
      }
   }
}
window.addEventListener(
    'load',
    function() { doit(); },
    true);



"Danke" erhalten von:
scania, eduardo_21_iol, schnulli, koox, gh2811, jojo68, rawdigit, thrill, decik, chantali, RavenMsk, ebbot, meeat, gogogo12345, joshua, submentalbass22, snapper, winkler, onesniper
Gespeichert
gollum
Retired S-Mod
Search & Found
*****

TLO-Points: 24603
New Zealand New Zealand

Beiträge: 1915
Referrals: 5


official board-hobbit


« Antworten #1 am: 07. Mai 2009, 10:52:01 »

Hmmm ... und wie adde ich das script?

Hab mal greasemonkey installiert ... aber bei "Neues Benutzerscript" fragt er mich nach folgenden Angaben:

- Name
- Namensraum
- Beschreibung
- Auf diese Seiten anwenden
- Nich auf diese Seiten anwenden

Und wie bzw. wo adde ich den code, den Du gestrickt hast?
Gespeichert

like my posts? - comments and ratings are welcome!
· · ·
password: "for_your_eyes_only!" or "MyDailyStuff" (without "")
Daemon
NooB
**

TLO-Points: 242
Germany Germany

Beiträge: 23
Referrals: 0


« Antworten #2 am: 08. Mai 2009, 15:15:30 »

hmm würde jetzt mal schätzen, das kommt in die von dir beschriebenen Zeilen:


// @name           pornhost fullscreen
// @namespace      test
// @include        http://www.pornhost.com/*
Gespeichert
gollum
Retired S-Mod
Search & Found
*****

TLO-Points: 24603
New Zealand New Zealand

Beiträge: 1915
Referrals: 5


official board-hobbit


« Antworten #3 am: 08. Mai 2009, 17:42:43 »

hmm würde jetzt mal schätzen, das kommt in die von dir beschriebenen Zeilen:


// @name           pornhost fullscreen
// @namespace      test
// @include        http://www.pornhost.com/*



joar ... abba wie + wo kommt der restliche code hin  Augen rollen
Gespeichert

like my posts? - comments and ratings are welcome!
· · ·
password: "for_your_eyes_only!" or "MyDailyStuff" (without "")
belarcos
Newbie
*

TLO-Points: 45
Germany Germany

Beiträge: 3
Referrals: 0


« Antworten #4 am: 09. Mai 2009, 05:55:49 »

sorry, nochmal Schritt für Schritt:
1. pornhost öffnen, also auf irgendeinen Link hier klicken, der zu Pornhost führt. Beispiel: http://www.pornhost.com/3941940922/
2. Rechtsklick auf das Greasemonkey-Icon unten rechts in Firefox
3. "New User Script..." auswählen
4. Formular ausfüllen
* Name --> egal, z.B. Pornhost Fullscreen
* Namespace --> egal. z.B. Test
* Description --> egal, z.B. leer lassen
* Includes (one per line) --> http://www.pornhost.com/*
* Excludes --> leer lassen
5. Danach öffnen sich ein Texteditor. Wenn ihr Greasemonkey das erste mal starten, fragt er, welchen Editor er nehmen soll. Entweder hier euren persönlichen Favoriten oder einfach Notepad (bei mir unter c:/windows/system32/notepad.exe).
6. In den texteditor den Code Copy&Paste. Die erste Zahl '1051' ist die Breite des Videos, die zweite '800' die Höhe. Das passt bei mir genau in das Firefox Fenster, ggf. kann man das auf die eigenen Auflösung, Toolbars, Themes etc anpassen.
7. Die Seite neu laden --> damit sollte das Video groß angezeigt werden und der Rest verschwunden sein.

Wenn ihr an Größe und Breite noch was ändern wollt, wieder auf das Greasemonkey-Icon --> Manage User Scripts und dann auf Edit. Da könnt ihr das ganze auch wieder deaktivieren.
Gespeichert
rester
Newbie
*

TLO-Points: 150
Hong Kong Hong Kong

Beiträge: 8
Referrals: 0


« Antworten #5 am: 10. Mai 2009, 16:50:20 »

oh, thank you for the script.  Surely a full screen will serve better.
Gespeichert
gollum
Retired S-Mod
Search & Found
*****

TLO-Points: 24603
New Zealand New Zealand

Beiträge: 1915
Referrals: 5


official board-hobbit


« Antworten #6 am: 12. Mai 2009, 20:04:46 »

sadly won't work for me  Weinen might be 'cause of some other computer-settings.

Please give some feedback, if this works for you ...
Gespeichert

like my posts? - comments and ratings are welcome!
· · ·
password: "for_your_eyes_only!" or "MyDailyStuff" (without "")
Tags:
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines
Mesh | TinyPortal v0.9.7 © Bloc XHTML | CSS
Seite erstellt in 0.199 Sekunden mit 32 Zugriffen.