General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: 12Next
Current Page: 1 of 2
How to redirect youtube urls to hooktube/Invidious
Posted by: Mello
Date: April 20, 2019 06:40PM

Chrome has an extension - Url Redirector - which will do this (for any urls).

So if I find a youtube video url in a search engine I want it to be automatically opened in hooktube. (hooktube is much faster loading than youtube)

In the options there is a field for "original url" (youtube.com/)
Then a second field "Redirect to" url (hooktube.com/)

Then a checkbox to "keep sub path" This only needs ticking the following example/or any other does not need to be filled in ("watch?v=H-uTS0qb7Dw")

Any alternative way of doing this in K-m?



Edited 3 time(s). Last edit at 02/09/2021 05:52PM by Mello.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 22, 2019 08:22PM

Not really, at least not userfriendly enough :-(
Has been requested before:
http://kmeleonbrowser.org/forum/read.php?9,137113

If you could handle such complicated macro definitions???
And come up with a good way to start it?

Personally I'm using tons of redirects of that sort by macro, a big one that kicks in when middle-clicking a link, another huge one when clicking my SiteTweaks-button, others work automatically $OnLoad (after a page finished loading), yet another creates a menu. But all together one big complicated mess, just far too many sites meanwhile, even struggling myself now often.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 22, 2019 11:41PM

I think this is beyond my limited skill set. grinning smiley

It would have to be something that avoided youtube loading at all because it takes too long on this laptop.



Edited 1 time(s). Last edit at 04/22/2019 11:46PM by Mello.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 23, 2019 02:10AM

Found this bookmarklet which works in Chrome but won't load when I drag it onto the bookmarks bar in K-M Goanna.

http://codesniff.com/programmation/load-youtube-video-to-hooktube-bookmarklet

Years since I used a bookmarklet does KM have a problem with them now?

Anyhooo... in chrome when a youtube link is clicked in a search engine and youtube first appears, clicking the bookmarklet redirects it immediately to Hooktube. Youtube doesn't have to load.



Edited 1 time(s). Last edit at 04/23/2019 02:17AM by Mello.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 23, 2019 02:24AM

Not sure how bookmarklets work in newer versions, perhaps the prob is with dragdrop, or cross-site-prefs...

But if you really want to block youtube completely, take a look inside the attachment...

Attachments: youtube2hooktube_draft1.kmm (1.3 KB)  
Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 23, 2019 02:00PM

Thanks siria.

I don't want to block it completely tho' sometimes I use their search.

A very helpful character posted this about long boomarklets a few years ago :-)
http://kmeleonbrowser.org/forum/read.php?9,109335,127037#msg-127037

Not sure how to use it - is the hooktube bookmarklet too long?

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 23, 2019 03:49PM

Can you post the bookmarklet code? Have trouble accessing it, but what I see in the html-src it looks very tiny.
That should definitely be usable and easy.
As bookmarklet (if possible at all), or you can also wrap it into a tiny macro and then call it by menu or shortcut or button, whatever you prefer.

If you want to run it manually only, another easy possibility are hotlinks. Those work instantly and can be changed during a session (F2>Browsing>Hotlinks).
Start the url with "javascript: .....yourbookmarkletcode...."

Have recently made an extended menu with 20 entries for an avid hotlinks-fan, it's somewhere in the forum. But for just 10 entries the native GUI in F2 is surely enough.
And several years ago made a little hotlinks toolbar, just tiny number buttons 1-10 to save space.
Ah I keep forgetting: in modern KM-version you don't need images anymore for toolbar buttons! You can simply create a text based toolbar in toolbars.cfg, with the button showing e.g. "YT" (usual tip to not mess "default" skin: make a copy of your current skin folder, put a copy of toolbars.cfg and skin.cfg inside, then select this copy as active skin in F2>GUI)
How to create a text-button toolbar:
in toolbars.cfg take a close look at the Privacy bar and copy the syntax. Although it does have little red-green "prefix" icons, those are optional and can be omitted.



Edited 2 time(s). Last edit at 04/23/2019 04:07PM by siria.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 23, 2019 11:45PM

I got the code below from right clicking on the Hooktube bookmarklet link
I looked up how to make a bookmarklet from a bookmark - enter code as url - BUT unlike in chrome when I click boomarklet it will only redirect to hooktube after youtube has loaded - which defeats the objective.

Quote

javascript:void%20function(){url=window.location.href;var%20o=%22%22;url=url.replace(/(%3E|%3C)/gi,%22%22).split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/),void%200!==url[2]%3F(o=url[2].split(/[^0-9a-z_\-]/i),o=o[0],location.href=%22https://hooktube.com/watch%3Fv=%22+o):alert(%22This%20is%20not%20a%20Youtube%20video%22)}();



Edited 3 time(s). Last edit at 04/24/2019 12:06AM by Mello.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 25, 2019 09:55PM

Is it possible to toggle your macro on and off siria?
(youtube2hooktube_draft1.kmm (1.3 Kcool smiley)

I find with it enabled youtube begins to load and then the page pretty soon automatically redirects to hooktube.

So this looks to be the most workable option for K-M if the macro could easily be disabled for when I want to access youtube.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 25, 2019 11:08PM

Quote
Mello
Is it possible to toggle your macro on and off siria?
(youtube2hooktube_draft1.kmm (1.3 Kcool smiley)

I find with it enabled youtube begins to load and then the page pretty soon automatically redirects to hooktube.

So this looks to be the most workable option for K-M if the macro could easily be disabled for when I want to access youtube.

A toggle itself is no prob, only where to place it without cluttering too much or other troubles? Just tell where and how you'd like it :cool:
So far for draft testing it can be toggled in about:config, as written in the kmm

But it would probably make sense to auto-redirect not from ALL youtube URLs, but only if the URL starts with "www.youtube.com/watch?v=" or similar?
(there the question is, which variations exists? The bookmarklet already contains some, except that this advanced regex code is a bit too complicated for non-experts, would prefer to include it 'human readable'.)
For first draft testing I had simply exchanged the domain, but the rest of the URL kept unchanged. Of course it's much better to extracts the video-ID and create a clean new URL with "watch?...", like the bookmarklet.

But am a bit confused: you're saying that first loading the complete youtube page and THEN redirecting to hooktube is still faster as watching on youtube itself...?



Edited 1 time(s). Last edit at 04/25/2019 11:17PM by siria.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 25, 2019 11:19PM

Maybe a hotkey combo (ALT + another key) to toggle rather than a button?

I'm getting confused myself lol

It is variable - sometimes youtube loads quicker than other times.
Is there a script to strip out anything that slows down youtube page loading?

Was reading this linked article below: which explains why when using chrome it redirects so quickly to hoooktube - youtube is optimized for loading in chrome - surprise! surprise!

http://webcache.googleusercontent.com/search?q=cache:Zc8yDnqkld0J:https://www.theverge.com/2018/7/25/17611444/how-to-speed-up-youtube-microsoft-edge-safari-firefox%2Bspeed+up+youtube+page+loading&gbv=1&hl=en&ct=clnk

In light of this I'm trying out IE11 user agent override for youtube and now it isn't redirecting at all.

Perhaps I'm tired will begin afresh tomorrow.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 25, 2019 11:48PM

https://www.theverge.com/2018/7/25/17611444/how-to-speed-up-youtube-microsoft-edge-safari-firefox
Quote

Google launched a new YouTube design nearly a year ago, but if you’ve been using Edge, Safari, or Firefox then you’ve probably wondered why YouTube is loading so slowly. Mozilla program manager Chris Peterson has highlighted the issue this week, and it’s not your alternative browser that’s to blame. Google’s redesign still relies on a deprecated shadow DOM API that’s only implemented in Chrome, making other browsers render YouTube five times slower.

It’s the latest case of Google building and tuning its web services so they work better or only work in the company’s Chrome browser. Google Meet, Allo, YouTube TV, Google Earth, and YouTube Studio Beta have all blocked Microsoft Edge in the past, and Google Meet, Google Earth, and YouTube TV have all also been blocked if you use Firefox. Google even blocked its Google Maps service on Windows Phone years ago in a passive-aggressive move that it eventually reversed.

GRRR... yeah, they're abusing their monopoly as usual, like MS and other mega companies too, and always get away with it sad smiley Laws are only there to catch the small fishes or even plankton, but the sharks can do whatever they want.

Anyway, test this UA? :cool:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: rodocop
Date: April 26, 2019 09:55PM

In general, KM loads non-latest Youtube version (by default chat disabled for example) - and works fast there.

And even more faster with adblock.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: April 27, 2019 05:30PM

That ua is faster siria, but redirect is still slow and now when hooktube opens video screen is black blank screen

I've just tried your KM pro 76 rodocop and it loads youtube very quickly. What would I need to do to goanna to get it working so fast? Ive not tried hooktube redirect with it yet

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: siria
Date: April 28, 2019 02:23AM

Quote
Mello
That ua is faster siria, but redirect is still slow and now when hooktube opens video screen is black blank screen

Of course they should get different UA's, using site UA's.
But that's now obsolete anyway:

Quote
Mello
I've just tried your KM pro 76 rodocop and it loads youtube very quickly.

Very interesting! Even a rather old build can still get youtube to behave decently grinning smiley
Hmm, did a quick textsearch in an unzipped Pro-Build and hottest candidate is adblockplus (yt entries in 2 files). Or possibly the hmtl5-button (toggles a dozend video-related prefs). Or just some general different default settings, in the defaults/preferences folder.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Mello
Date: May 03, 2019 09:20PM

Fastest way I've found so far in Km is to send a youtube url to an already opened chromium browser with the chrome "Redirector" extension installed.
https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd?hl=en

I have chromium open anyway because K-m is problematic with a few sites I often use.

Here's the Hooktube code for Redirector's options
Quote

Youtube to Hooktube
Redirect:https://www.youtube.com/watch?v=*
to:https://hooktube.com/watch?v=$1
Example:https://www.youtube.com/watch?v=1234 ? https://hooktube.com/watch?v=1234
Applies to:Main window (address bar)

Here's send to chromium.kmm
http://kmext.sourceforge.net/extensions/chromiumex.7z



Edited 2 time(s). Last edit at 05/03/2019 09:26PM by Mello.

Options: ReplyQuote
Re: How to redirect youtube urls to hooktube
Posted by: Shiro Naomi
Date: May 04, 2019 11:31PM

Quote
siria
Not sure how bookmarklets work in newer versions, perhaps the prob is with dragdrop, or cross-site-prefs...

But if you really want to block youtube completely, take a look inside the attachment...
Siria thank you for make this macro
I modified it to open imgur's direct links
I dont know how to upload a file to this forum
But here is grinning smiley
https://www52.zippyshare.com/v/mpx4JE3I/file.html

Edit:

Some way to edit the link load inside a page?
Since the macro only redirects the links of the pages




Edited 1 time(s). Last edit at 05/05/2019 02:53AM by Shiro Naomi.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 05, 2019 02:54AM

Quote
Mello
Fastest way I've found so far in Km is to send a youtube url to an already opened chromium browser with the chrome "Redirector" extension installed.
https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd?hl=en

Had now a look at this link, researched a bit more, and it turned out quite interesting:
This existed also as XUL-addon for Firefox. But the big surprise for me:
the author writes on his homepage that the old xul-versions had a HTML-GUI!
First time I see this. Perhaps it works in modern KM-versions too?
The redirection itself is engine stuff, the main prob with most addons is usually the gui. But many have an "Options" link on aboutaddons, that works too.
Perhaps anyone can test? :cool:

http://einaregilsson.com/redirector/
screenshot (first = xul = KM / second = WebExt = Chrome + modern FF):
http://einaregilsson.com/writing-a-browser-extension-for-three-browsers/
download old xul-versions:
https://legacycollector.org/firefox-addons/5064/index.html
old version list for which FF-versions: see attachment below ( v2.9.3 looks ok?)

Attachments: Redirector_versions.htm (92.6 KB)  
Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 06, 2019 11:49AM

Firefox addon "Redirector" in K-Meleon:
https://addons.mozilla.org/en-US/firefox/addon/5064

KM can only handle the 'legacy' xul-versions, which Mozilla has all destroyed lately to force people onto their much less customizable newer browsers (with much more spying and forced remote-control built in), but currently still available here:
https://legacycollector.org/firefox-addons/5064/index.html
Old changelog versions for XUL see attachment in my post above ( v2.9.3 looks ok?)

Now due to my old system, tried to get it working in KG74 (special build for Win2000, with roytam's modified PM26 engine inside). The addon seems to start and partly work, if the xpi is unzipped and contents placed in a new folder ...k-meleon/browser/extensions/redirector@einaregilsson.com/....
Important: really as single files/folders, not as compressed xpi-file!
And because this old KM-version reports itself to addons not as version 24 or 74, but as "2.2", the install.rdf also needs a little edit: just faking the target Firefox version to a lower "min" number (I simply always use 1.0 - 99.*)
Of course, also the pref in aboutconfig: kmeleon.install_firefox_extension = true
After this, the addon shows up in about:addons, and the options and help buttons work, rules can be defined, and the rule-test button finally claims 'success'.
BUT: the main function somehow doesn't work yet tongue sticking out smiley
Just ONCE it did, while wasting endless hours just to figure out how to get this far, just once a redirect rule seemed to work. Immediately have changed the target URL to verify, and yes, it really did work - but only this one time. Before and after not. And even just using ultrasimple example rules from the help file.. Have tried everything I could think of, incl. trying various old addon-versions, manipulating here and there, files, content, settings, just blind guessing, tried restoring original again, but no chance.
Of course, the main prob is, am just a user with no dev skills, hardly any JS beginner skills, almost no clue of FF addons, AND this KM-version is very buggy anyway on my OS.
Am sure it's a lot easier on a younger OS and younger KM/KG-version, which like FF-addons much better without needing fiddling. Anyone figure out more...?



Edited 2 time(s). Last edit at 05/06/2019 12:05PM by siria.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: May 08, 2019 08:59PM

Splendid detective work siria.

It works for me in goanna and loads Hooktube very very very quickly. smiling smiley

I followed your instructions with Redirector version 2.9.3
but when it came to the options dialog it didn't display as it did in chrome

The only fields visible were an exclude pattern field, the hooktube target field, and /regular expression/wildcard options.

So I went into Chrome's Redirector options and used the export option
which produced a Redirector.json file.

The Import button browse dialog in k-m's legacy Redirector options
was looking for a .rjson extension - so I renamed it to Redirector.rjson
and it imported successfully.... and worked!

Here's the rjson code;

{
    "createdBy": "Redirector v3.2",
    "createdAt": "2019-05-08T20:27:27.202Z",
    "redirects": [
        {
            "description": "Youtube to Hooktube",
            "exampleUrl": "https://www.youtube.com/watch?v=1234";,
            "exampleResult": "https://hooktube.com/watch?v=1234";,
            "error": null,
            "includePattern": "https://www.youtube.com/watch?v=*";,
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://hooktube.com/watch?v=$1";,
            "patternType": "W",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        }
    ]
}


Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 08, 2019 11:23PM

Quote
Mello
It works for me in goanna and loads Hooktube very very very quickly. smiling smiley

Ouf... very glad to hear! Thanks for reporting that it works! smiling smiley

I think that's a very essential and important addon. Am using lots of redirects myself long since and couldn't live without. But what I'm doing with macros is rather complicated and for stuff like this xpi-addons have 2 huge advantages: they can catch the URL directly before loading, and can create such a userfriendly GUI.

Now let's proceed to get it finished... You don't see all input fields? On my older KG74 the options window is only too narrow left and right, cannot figure out how to change that, but opening the page as a normal webpage works fine. Would that help in newer KM too?
chrome://redirector/content/redirector.html



It may just take a few seconds to load, but it works.
The older version 293 creates such a syntax in profile redirector.rjson (no idea why it claims 271, it's really 293):

{
    "createdBy": "Redirector v2.7.1",
    "createdAt": "2019-05-08T22:51:21.700Z",
    "redirects": [
        {
            "exampleUrl": "https://www.youtube.com/watch?v=1234";,
            "description": "Youtube to Hooktube",
            "includePattern": "https://www.youtube.com/watch?v=*";,
            "excludePattern": "",
            "redirectUrl": "https://hooktube.com/watch?v=$1";,
            "patternType": "W",
            "disabled": false
        },
        {
            "exampleUrl": "http://example.com/foo";,
            "description": "example.com/foo to bar",
            "includePattern": "http://example.com/foo";,
            "excludePattern": "",
            "redirectUrl": "http://example.com/bar";,
            "patternType": "W",
            "unescapeMatches": false,
            "escapeMatches": false,
            "disabled": false
        }
    ]
}

By the way meanwhile realized it can be installed much easier, the normal way. I only had tried more complicated ways after it didn't seem to work at all in KG74 (still doesn't, sigh)

General HowTo xpi-INSTALLATION:
download the xpi-file to local disk, open page about:addons in browser, clicking the gear icon to install from local file and pick it. Wait a bit - done. Just restart. This automatically places the addon in the profile folder in "extensions", and it also automatically unzips it.
If this does NOT work yet, check the prefs
kmeleon.install_firefox_extension = true (KM74-76)
xpinstall.enabled = true
If KM complains that an addon version isn't compatible, open the xpi with 7zip, right-click install.rdf to edit, and change the min/max version numbers for Firefox.
Add a note in the description field that it's edited. Close, save inside xpi and save it to disk again.



Edited 2 time(s). Last edit at 05/08/2019 11:31PM by siria.

Attachments: redirector-addon293_KG74_screen.png (9.4 KB)  
Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 09, 2019 12:00AM

Now I remember... my main prob was the cropped sides when opened from about:addons, without scroolbars, but yes guess the edit box was a bit too high too... but only for the first 1-2 rules. Had considered adding a rule with "top: 20px" below too, but then decided against it, assuming that it would be bad for longer lists (jumping to top of page?), and also it's not necessary anyway when opened as normal webpage. But perhaps a margin-top or similar would make sense, we'll see.

Fiddled with redirector.css yesterday, for testing added in mine at bottom:

/*###### MOD ####### (above ORI)
ori as normal tab page far too broad
And somehow as popup window nowhere scrollbars when overflowing?? No fix :-(
*/
#redirect-list {
width: auto !important;
margin: 0px 20px !important;
}

#redirect-form {
left: 20px !important;
}

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Shiro Naomi
Date: May 09, 2019 01:07AM

I downloaded this version > https://addons.mozilla.org/firefox/downloads/file/1049034/type:attachment/redirector-3.2.1-an+fx.xpi?src=version-history <
Then i tried the following
Quote
Mello
General HowTo xpi-INSTALLATION:
Open page about:addons in browser, clicking the gear icon to install from local file and pick it. Wait a bit - done. Just restart. This automatically places the addon in the profile folder in "extensions", and it also automatically unzips it.
If this does NOT work yet, check the prefs
kmeleon.install_firefox_extension = true (KM74-76)
xpinstall.enabled = true
If KM complains that an addon version isn't compatible, open the xpi with 7zip, right-click install.rdf to edit, and change the min/max version numbers for Firefox.
Add a note in the description field that it's edited. Close, save inside xpi and save it to disk again.
But tells me it couldn't be installed because it couldn't be verified.

I cant wait for you guys to get that extension for k-meleon roytam1 versiongrinning smiley




Edited 1 time(s). Last edit at 05/09/2019 03:14AM by Shiro Naomi.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: May 09, 2019 08:33PM

Opening as web page works siria, with additional css I only see
a couple of bottom fields.

I tried the redirector.css from the chromium browser install
and while a bit wierd it worked better - not a finished fix tho'.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 09, 2019 09:41PM

So different CSS rules are needed for different KM versions? Pity. Too complicated, and can't check myself currently, so will just leave it original.
Just planning to add a little macro which adds it in the normal menus (in Tools), that will open the website in a normal tab which seems to work.

For youtube itself, wondering if the URL suffix "&disable_polymer=1" still works to get the classic view back?

@Shiro
The link to mozilla AMO is only for general information, NOT for downloading the xpi.
KM needs older versions, which were ALL DELETED on that site.

To quote myself:
Quote
siria
Firefox addon "Redirector" in K-Meleon:
https://addons.mozilla.org/en-US/firefox/addon/5064

KM can only handle the 'legacy' xul-versions, which Mozilla has all destroyed lately to force people onto their much less customizable newer browsers (with much more spying and forced remote-control built in), but currently still available here:
https://legacycollector.org/firefox-addons/5064/index.html
Old changelog versions for XUL see attachment in my post above ( v2.9.3 looks ok?)



Edited 1 time(s). Last edit at 05/09/2019 09:45PM by siria.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: May 09, 2019 11:39PM

I double checked css with different screen resolutions and dpi, still no go.

on topic/off topic
Have you seen this site siria? I only just came across it.
https://invidio.us

It seems to mirror youtube but doesn't require js
It even has a direct download option.

Quote

As I understand it, Invidious does not use YouTube's API, so it is not subject to Google's terms of service.[1] It's not different from youtube-dl in that it downloads YouTube videos without YouTube's API or web interface. It is different in that it *replaces* the web interface, so you're right that this could piss them off more.

Some videos are inaccessible with Invidious due to DRM. If Google put this kind of DRM on all videos it could kill Invidious, but if Google were interested in doing this they could already have used it to kill youtube-dl. I've wondered why they don't do this. I don't see any technical reason why they couldn't, so they must benefit in some way from allowing most videos to be accessible without DRM.
https://trisquel.info/en/forum/invidious-youtube-redirect-site-agplv3-no-js-required?page=1


Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 10, 2019 12:52AM

Quote
Mello
I double checked css with different screen resolutions and dpi, still no go.

Is the prob the list or the edit box? Because only the list has the top margin redefined in the additional css (to 0px), otherwise it only affects left and right sides.
For testing perhaps replace the all-around "margin" for the list with only left and right margins, that keeps the original one on top:
margin-left: 20px ... margin-right: 20px ....
If the edit field is too high up and cropped, would try if a "margin-top: 10px" helps anything.

Quote
Mello
https://invidio.us
It seems to mirror youtube but doesn't require js
It even has a direct download option.

Yes had seen it before, looks very interesting for low resource and old browsers. But didn't look at it too closely because the brilliant gantt-script still works, which lets me download too, directly from yt itself, and it even lists the download size too.
But what I had not noticed before: invidio can show comments! Haven't seen any yt comments since many years (and nearly anywhere else neither, since disqus got the comments monopoly)
Are the comments on invidio the same as on youtube, or own ones?



Edited 1 time(s). Last edit at 05/10/2019 01:10AM by siria.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: May 10, 2019 05:11PM

I've tried fiddling about with different values but I'm clueless about css.

Whatever I try I can't see anything above the exclude pattern field when opening the edit button for an existing redirect or when opening the New Redirect dialog. The initial dialog containing all the buttons is O'K

The chromium redirector.css formats fine but when a button is pressed
the new dialog text is superimposed on the initial addon dialog making it a jumble - it is like overlaying two pictures with high transparency on the top layer.

Personally, I'm fine using your html workaround.

I've not compared invidio.us comments to youtube's.
I like the way hooktube allows you to toggle comments on if wanted.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 10, 2019 06:22PM

Thank you for helping Mello.
Yes the direct html-call is fine, but the prob is, most people who install that addon and click on the options button will just give up right away :-/

Quote
Mello
Whatever I try I can't see anything above the exclude pattern field when opening the edit button for an existing redirect or when opening the New Redirect dialog. The initial dialog containing all the buttons is OK

The chromium redirector.css formats fine but when a button is pressed
the new dialog text is superimposed on the initial addon dialog making it a jumble - it is like overlaying two pictures with high transparency on the top layer.

Okay, if you hold on a bit longer or perhaps anyone else jumps in, lets try to move it 300px downwards??
And for the chrome style (don't know that file) a white background
At the bottom of the redirector.css:

#redirect-form, #edit-redirect-form {
margin-top: 300px !important;
background-color: white !important; opacity: 1 !important;
}


Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: May 10, 2019 08:34PM

Some progress.

In the original css text, I followed your lead and changed the margin-top value to 200 (300 was too much)

margin-top: 200px !important;

In your first css modification I changed "auto" to "50"
#redirect-list {
width: auto !important;
to
#redirect-list {
width: 50 !important;

(EDIT - any value there 10,20, 50, 100 has the same effect?)

and now the pop up dialogs for "edit" and "new redirect"
are well presented with all fields showing - GOOD!

BUT with that -
the initial dialog box with all the options has reverted to being far too wide with the close button out of view.

Getting there



Edited 3 time(s). Last edit at 05/10/2019 08:42PM by Mello.

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.