General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: Previous12
Current Page: 2 of 2
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: May 10, 2019 08:54PM

Quote
Mello
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?)

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.

Yes that's normal, because "width" affects only the left and right sides, not the top or height.
By setting just a number without any unit (px? %? em?) that line gets just ignored and the original width appears again. That's far too wide for me too, that's why I started fiddling with css in the first place. The original size is FIX, either 50em or 80em, that's a prob for smaller screens. So to keep it somewhat flexible "auto" just disables that fix size.

Perhaps for clarification:
redirect-list = main window, all rules
redirect-form = Edit box for single rules

#redirect-list {
width: auto !important;
margin: 0px 20px !important;
}

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

Frankly, I may know a bit more css basics, but it's mostly just trial+error too ;-)
Especially this options-button window is weird, it has somehow no real size defined, and not even the window itself seems to know its own size, there appear no scrollbars when overflowing. So just struggling and fiddling to keep the layout in this one and in the normal-page layout both viewable...

Edit:
Sigh, what I suspected: on my screen the 200px are far too low again, and due to lacking scollbars just cropped

But just realized where this popup WINDOW size is defined: it's the same as the whole browser window if NOT set maximized!



Edited 3 time(s). Last edit at 05/10/2019 10:25PM by siria.

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

I've got it workable for my notebook - the main window is now a good size and I can see all the fields in the edit/new dialogs.
It is not too wide - main discrepancy is no margin/frame down the righthand side. The various fields just end where the dialog box ends.

I can see the save and test buttons - only the cancel button is missing.


I've kept the 200 top-margin wthin the original css
and in your added mod edited it like this:

#redirect-list {
width: auto !important;
margin: 0px 20px !important;
}

#redirect-form {
left: 10px !important;
margin-top: 35px !important;
}


In chromium browser these are the option buttons below each completed redirect:
Enable/Disable, Edit, Delete, ^ v, Duplicate
(^ v = move up or down in list order)
So it is quite elaborate with the last redirector version

Someone else needs to experiment and give us css feedback - might be a quirk of my notebook.



Edited 2 time(s). Last edit at 05/12/2019 12:38AM by Mello.

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

What I keep riddling: where 200 top-margin original?
In version 2.9.3 can't find this anywhere...

Quote
Mello
main discrepancy is no margin/frame down the righthand side. The various fields just end where the dialog box ends.
I can see the save and test buttons - only the cancel button is missing.

Is it missing because the right side is cropped?
Strange that my screen doesn't have this prob, despite only 1024px
Probably the FIX WIDTH of the input fields is too long for yours, this:

#redirect-form > div > input[type='text'] {
display: inline-block;
width: 46em;
margin-top: 7px;
}

Quote
Mello
In chromium browser these are the option buttons below each completed redirect:
Enable/Disable, Edit, Delete, ^ v, Duplicate
(^ v = move up or down in list order)
So it is quite elaborate with the last redirector version

Yeah those are nice additional functions, really handier as export-edit-import again. But sadly xul-addons don't get updated anymore. The last xul version 2.9.3 is already several years old. Modern Firefox gets the updated version too, same as Chrome, both WebExtensions.

Am sure a skilled javascript coder could copy over those newer functions into the old xul too, and if necessary rewrite the code, just who?
So often am just glad at least I can help myself partly with macros, and a tiny bit JS here and there, although JS keeps killing me ;-)

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Shiro Naomi
Date: May 12, 2019 03:44AM

Quote
siria
@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?)
"The complement could't be downloaded for a error in the conection in legacycollector.org"
But is ok
I wait for your extension grinning smiley


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

Quote
Shiro Naomi
"The complement could't be downloaded for a error in the conection in legacycollector.org"
But is ok
I wait for your extension[/i]

Am not sure why upload the very same file again, considering it works already fine out-of-box. At least for newer 76 versions, and when opening the Options page as normal webpage, with this as bookmark:
chrome://redirector/content/redirector.html
We're only discussing here because I can't get it working in OLD KG74, and also to improve the Options-BUTTON popup window, but that is not your prob if you simply use a bookmark with that chrome-URL.

And the xpi-download works fine too, even with KM1.6, just tried again.
Perhaps there was a temporary server glitch - just try again. If still a prob, right-click on the xpi-link and "Save As".



Edited 1 time(s). Last edit at 05/12/2019 04:41AM by siria.

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

Quote
siria
What I keep riddling: where 200 top-margin original?
In version 2.9.3 can't find this anywhere...

Actually I changed it to 200 in an earlier round of posts - can't remember what original was.smiling smiley

Quote
siria
Is it missing because the right side is cropped?
Strange that my screen doesn't have this prob, despite only 1024px
Probably the FIX WIDTH of the input fields is too long for yours, this:

My screen is also 1024 (x600) - the screen doesn't crop it off - the box just ends without any margin.

Quote
siria
#redirect-form > div > input[type='text'] {
display: inline-block;
width: 46em;
margin-top: 7px;
}

I randomly changed 46em to 26em and now the cancel button on the right also shows. grinning smiley

Dialog box still just cuts off on the right with no frame or margin.

I'm happy with that - I'll leave it for now.

Thanks for all your help.

For anyone following this thread who is as unskilled in various codes as I am, here's the parameters for a youtube to invidio.us redirect - same as the hooktube one really.

description: youtube to invidio
example url: https://www.youtube.com/watch?v=1234
include pattern: https://www.youtube.com/watch?v=*
redirect to: https://www.invidio.us/watch?v=$1
pattern type: wildcard

Unfortunately it isn't possible to switch between them in this early
version.

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

Maybe there isn't an easy solution to this?

For instance, I was experimenting with a fresh non-tweaked Goanna version and temporarily used the default skin to begin with.

The css edits that worked for my normal skin of choice (AuraAlpha(Large) didn't for the default skin. The dialog boxes and buttons were getting cut off again.



Edited 1 time(s). Last edit at 05/17/2019 08:33PM by Mello.

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

Quote
Mello
I was experimenting with a fresh non-tweaked Goanna version and temporarily used the default skin to begin with.
The css edits that worked for my normal skin of choice (AuraAlpha(Large) didn't for the default skin. The dialog boxes and buttons were getting cut off again.

No can't imagine, the user skin really has nothing to do with how page content looks. That skin only rules over toolbar buttons and toolbar background. If anything, possibly the build on moz skins which are deep inside omni.ja somewhere, and have partly to do with xul windows. But in this case I'd suspect much more likely user css styles or adblock css , and especially: are you really sure the addon in this profile still contains your modified stylesheet?

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Shiro Naomi
Date: May 18, 2019 11:15PM

Quote
siria
Quote
Shiro Naomi
"The complement could't be downloaded for a error in the conection in legacycollector.org"
But is ok
I wait for your extension[/i]

Am not sure why upload the very same file again, considering it works already fine out-of-box. At least for newer 76 versions, and when opening the Options page as normal webpage, with this as bookmark:
chrome://redirector/content/redirector.html
We're only discussing here because I can't get it working in OLD KG74, and also to improve the Options-BUTTON popup window, but that is not your prob if you simply use a bookmark with that chrome-URL.

And the xpi-download works fine too, even with KM1.6, just tried again.
Perhaps there was a temporary server glitch - just try again. If still a prob, right-click on the xpi-link and "Save As".
Im using the latest version roytam1
https://o.rthost.win/kmeleon/KM76.2-Goanna-20190518.7z


Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Shiro Naomi
Date: April 18, 2020 04:02AM

This project has been stopped?
I really need this extension and the version that works with this browser doesn't do anything, it doesn't redirect


Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: October 15, 2020 11:54PM

Current download pages for traditional xul-addons (called "legacy addons" by Mozilla, they deleted them completely two years ago)

Older xul Addon versions are at the moment still available in waybackmachine smiling smiley
https://web.archive.org/web/20181002162221/https://addons.mozilla.org/en-US/firefox/addon/redirector/versions/

And legacycollector is also still archived (yet) smiling smiley
https://web.archive.org/web/20191102092548/http://legacycollector.org/firefox-addons/index.html

By the way recommend everyone to bookmark those links, and when looking for other addons just replace the addon-name.

If an addon can't get installed in KM76, there are a few tricks to try, which are described elsewhere.... Involves toggling some prefs, and/or unzipping the xpi and deleting the META_INF folder, and/or unzipping and editing file install.rdf inside, to adjust the list of allowed browsers and versions... (Have not much clue of such stuff, and there are other forum topics for such general procedures)



Edited 1 time(s). Last edit at 10/16/2020 12:01AM by siria.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: smallhagrid
Date: October 16, 2020 04:39AM

If anyone is looking for the XUL version of this, I got it from the Classic Add-ons Archive.
https://github.com/JustOff/ca-archive/releases
And the version I am using now is 3.0.6
Thus far I've tried the YT to invidio example, but it hasn't worked...yet.



Edited 1 time(s). Last edit at 10/16/2020 04:46AM by smallhagrid.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: siria
Date: October 16, 2020 01:28PM

Quote
smallhagrid
If anyone is looking for the XUL version of this, I got it from the Classic Add-ons Archive.
https://github.com/JustOff/ca-archive/releases

Ah yes, thanks for reminder. Sometimes forget it because sadly it doesn't work yet in KG74.

Quote
smallhagrid
And the version I am using now is 3.0.6
Thus far I've tried the YT to invidio example, but it hasn't worked...yet.

Version 3 is for "Firefox 44.0 - 56.*", while KM76 is closer to FF38.
So for use in KM an older version is probably better, but only testing can show.
It may also help to read the discussion from 2019 again, but not sure.



Edited 1 time(s). Last edit at 10/16/2020 01:33PM by siria.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: October 30, 2020 03:57AM

Invidio us has ended

But there's a list of alternative instances on the invidio us page
see which works best - just edit the address of existing invidio url in redirector options.

I tested just now using redirector-2.9.3 in goanna on windows 7

still works with hooktube or invidio



Edited 2 time(s). Last edit at 10/30/2020 03:59AM by Mello.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: smallhagrid
Date: November 05, 2020 01:25AM

I solved this for myself,as posted here:
http://kmeleonbrowser.org/forum/read.php?12,153502
See my last reply there for info.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: February 09, 2021 06:01PM

Sometimes invidious shows an error like "The media could not be loaded, either because the server or network failed or because the format is not supported" or "No video with supported format and MIME type found"

Here's a fix I found - add:

&local=true

onto the end of the url

example
watch?v=9ZEURntrQOg&local=true

So for Redirector, if
https://invidious.snopyta.org/watch?v=$1

is the url you are redirecting youtube to

Edit it to:
https://invidious.snopyta.org/watch?v=$1&local=true



Edited 2 time(s). Last edit at 02/09/2021 06:06PM by Mello.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: 4td8s
Date: August 15, 2021 03:46AM

Quote
Mello
Sometimes invidious shows an error like "The media could not be loaded, either because the server or network failed or because the format is not supported" or "No video with supported format and MIME type found"

Here's a fix I found - add:

&local=true

onto the end of the url

example
watch?v=9ZEURntrQOg&local=true

So for Redirector, if
https://invidious.snopyta.org/watch?v=$1

is the url you are redirecting youtube to

Edit it to:
https://invidious.snopyta.org/watch?v=$1&local=true

sadly, most invidious instances are now broken, no matter what sad smiley
maybe try yewtu.be instead



Edited 1 time(s). Last edit at 08/15/2021 03:49AM by 4td8s.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: September 07, 2021 12:01AM

How do you mean gone?

Sometimes I find gremlins or slow downs but I'd say there's always one or two that are 90% reliable for weeks or a few months at a time

I just checked 4 instances, 3 were fine, 1 was very slow

Occasionally search doesn't work on various instances but you can get around that by adding /search?q= after the instance name in your browser address bar

Just insert + between each word of the search term

Normally the instance search will work again after doing that.

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: Mello
Date: November 01, 2021 03:10PM

Quote
Mello
Sometimes invidious shows an error like "The media could not be loaded, either because the server or network failed or because the format is not supported" or "No video with supported format and MIME type found"

Here's a fix I found - add:

&local=true

onto the end of the url

example
watch?v=9ZEURntrQOg&local=true

So for Redirector, if
https://invidious.snopyta.org/watch?v=$1

is the url you are redirecting youtube to

Edit it to:
https://invidious.snopyta.org/watch?v=$1&local=true

If you haven't done this already, here's a refinement.

Vevo vids look to be the main culprits for needing to add: &local=true

So, if you are already on an invidious instance using their search or clicking on their suggested thumbnails, a second redirect is required to save having to manually add: &local=true to the url.

Duplicate the existing (youtube to invidious) redirect and then edit the youtube url to an invidious url in both the Example url and include pattern fields.

Now,invidious urls will automatically redirect to: &local=true

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: 4td8s
Date: February 25, 2022 12:43PM

Quote
Mello


still works with hooktube or invidio

does not work with hooktube.com anymore in 2022 - all youtube videos fail to load on hooktube
invidious is still ok

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: 4td8s
Date: July 26, 2022 07:58AM

Quote
4td8s

does not work with hooktube.com anymore in 2022 - all youtube videos fail to load on hooktube
invidious is still ok

yup. hooktube.com is now dead from mid-2022 onwards. only Invidious remains

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: 4td8s
Date: March 30, 2024 07:56PM

Quote
4td8s
Quote
4td8s

does not work with hooktube.com anymore in 2022 - all youtube videos fail to load on hooktube
invidious is still ok

yup. hooktube.com is now dead from mid-2022 onwards. only Invidious remains

though many of the invidious instances are having recent problems playing videos as the issue is mentioned here

not sure when that new problem will be resolved

Options: ReplyQuote
Re: How to redirect youtube / FF-addon Redirector?
Posted by: 4td8s
Date: April 02, 2024 02:55AM

Quote
4td8s

though many of the invidious instances are having recent problems playing videos as the issue is mentioned here

not sure when that new problem will be resolved

all of the existing invidious instances are now working again on Mon. April 1 as the issue is now resolved. smiling smiley

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.