atomGit User

so i need to convert video embed code so FF can play video without Flash plugin - example...

<embed src="http://www.youtube.com/v/P9sCshUboug?version=3&amp;hl=en_US" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" height="342" width="608">

convert to...

<iframe src="https://www.youtube.com/embed/P9sCshUboug?feature=oembed" allowfullscreen="" height="340" width="604"></iframe>

editing the URL and attributes is no problem, but how do i replace the opening embed tag to iframe? and how do i add the closing iframe tag?



holding off on this for a bit until i see what happens with the other i just opened (maybe that will resolve this)

also, thanks for reminding me about GF - i'll open requests there from now on


ff 36.0.1
TS LA 3.0.25
win 7

all the scripts no longer appear in the LA UI - also seeing in console...
ReferenceError: Counter is not defined - TSL_-_GM_Update.js:372:16
and the error counter keeps rising exponentially - watching it now it's at over 3000 as i write this

also seeing this each time the i open the UI...
Error: Permission denied to pass object to privileged code %255BTS%255D_Linx_Amender.user.js:1036:16


starting to really dislike this website - no reply notifications and have to use another service to log in that doesn't forward properly

anyway, no, i really can't because i haven't found how to reproduce it reliably

i know it happens when editing an existing rule for the current domain at some point, but the help link still works from another tab

i just spent a few minutes trying to break it again and wasn't able to

only mentioning this on the off-chance it may be related, but if you exit the editor and press F9 again, it won't open - after exiting, you have to click on the page somewhere, even though FF has keyboard focus, and then F9 will work


twitter is the example - trying to dump their outgoing redirected links

link sample:

<a href="http://t.co/abc" rel="nofollow" dir="ltr" data-expanded-url="http://the-real-url.com"

couple ways to do this, one of which is to dump everything up to data-expanded-url and replace it with href:
attribute rule script
selector: a
attrib: -href
but i don't understand how to rename data-expanded-url > href


found something that may help to reproduce the guide toggle issue - it seems it stops working at some point after creating a script for the current domain, however toggling the guide still works if i switch tabs, regardless of whether there is a script being applied to the new tab/domain


i've been having this issue for quite a while, at least across the last 2 releases

win7
FF =< 35

the 'toggle the guide' link in the script editor works the first few times i use it, then it... stops working

also seeing lots of these as i move the mouse over the items in the scripts list...

ReferenceError: Counter is not defined TSL_-_GM_Update.js:372
TypeError: this.clickedRow is undefined TSL_-_Draggable_Table_Rows.js:84



how did i get the JS error?

open console > clear console > open the Linx Amender UI


after upgrading to FF 35, no scripts are displayed in the UI, nor are they loaded
http://s6.postimg.org/72pzg43kx/screenshot_63.png

the buttons to toggle the guide and show on-line/off-line rules no longer work

the only errors i'm seeing in the console is for JS in '_Linx_Amender.user.js', primarily "TypeError: name is undefined" on line 1038:

if (!name.match(/^[ol]\d+$/i)) continue;

here's all of it...

Security wrapper denied access to property 0 on privileged Javascript object. Support for exposing privileged objects to untrusted content via __exposedProps__ is being gradually removed - use WebIDL bindings or Components.utils.cloneInto instead. Note that only the first denied property access from a given global object will be reported. %255BTS%255D_Linx_Amender.user.js:1037
TypeError: name is undefined %255BTS%255D_Linx_Amender.user.js:1038

TypeError: name is undefined (line 1038)

sorry, i couldn't re-open the last thread

i assume the RegExp used is JS - is positive look-behind supported?

i get conflicting information; some say yes, but the manuals seem to say no
here's how it's done in Perl and the 2nd example for JS i saw on stackoverflow.com, but it doesn't seem to work...
PCRE: (?<=abc) JS: /abc



{"id":"L1418997894597","name":"[Generic] Remove junk from URLs (broken)","URLs":"*","sampleURL":"https://addons.mozilla.org/en-US/firefox/addon/pure-url/","nthNode":"0","type":1,"selectors":"a","regexes":[{"name":"-utm_campaign"},{"name":"-utm_medium"},{"name":"-utm_source"}],"enabled":false,"timestamp":1418998878657}

for a sample, you can use the link in the first post


trying to remove garbage/tracking parameters from links, like "utm_*", but it's not working - essentially i'm trying to recreate the functionality offered by Pure URL

URLs: *
nodes: a
attribute rules: -utm_campaign, -utm_medium, -utm_source, etc...

sample:
http://bigpicture.ru/?p=431513&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+bigpictures+%28%D0%9D%D0%9E%D0%92%D0%9E%D0%A1%D0%A2%D0%98+%D0%92+%D0%A4%D0%9E%D0%A2%D0%9E%D0%93%D0%A0%D0%90%D0%A4%D0%98%D0%AF%D0%A5%29

but when i hover the sample or click the link, the address is unchanged


thanks for the help guys

is there a more appropriate place to discus issues like this?
i feel bad opening a bug report for simple questions :)


i'm trying to remove attributes from google.com and having some trouble

for example, i want to remove the 'onmousedown' attribute for the 'a' tag

example...
<a href="http://en.wikipedia.org/wiki/Bread" onmousedown="return rwt(this,'','','','1','AFQjCNEAvYP1wjdy5m5m8zh_2W8xD9Ci-Q','','0CCMQFjAA','','',event)">Bread - Wikipedia, the free encyclopedia</a>

my linx amender settings...
for 'url's', ^https?://(www\.)?([^\.]+\.)?google\.com
for the node selector, a
and for the 'attribute rules', -onmousedown

but when i refresh the page and look at the source, the attribute is still there


this is looking like a very cool and powerful script!

having some trouble creating a rule for addons.mozilla.org - they use a redirection in outbound links, like...

<a href="http://outgoing.mozilla.org/v1/d6a000fbfaddfda70896a85931dd525b2f898b37/http%3A//www.example.com%3Furl=www.mozilla.org" rel="nofollow">www.example.com?url=www.mozilla.org</a>

i want to dump the redirect, so i created an attribute rule...

url: ^https?://addons\.mozilla\.org/ node: a attrib: -href exp match: https?://outgoing\.mozilla\.org/.*?/http exp replace: http

i used the example rule for YouTube redirect removal, where i see there's a "-" in front of the class - i don't know why it's there, but i did the same in my rule and also ran it without the hyphen - neither worked

i'm familiar with PCRE's only, so maybe there's a syntax problem?

dev did a great job and i'm really looking forward to learning how to use this script better since i can dump several FF add-ons and user scripts with this