📜 ⬆️ ⬇️

Tuning Operas: previewing rss streams and subscribing to them via external readers, in the example I used Google Reader

In the Opera, before subscribing to the rss stream, you can see what it is. Connect the useful with the convenient - compatible preview and subscription through our readers
Preview and subscribe via google reader in Opera



Method 1
Save the webfeeds.html file anywhere and set the path to it on the settings page ( opera:config#UserPrefs|WebfeedsHTMLTemplateFile )
')
Method 2
We save the file webfeeds.html in C: \ Program Files \ Opera \ Styles \ (or where do you have Opera installed there?). Do not forget to make a copy for restoration. Done (no need to reboot). I guarantee what works for me on the 10th Opera.

Alternative way
If you don’t like Google Reader or don’t want to upload a file, here’s what you need to do in the local webfeeds.html file:
find the line
(document.getElementById('learn')||{firstChild:{}}).firstChild.nodeValue = opera.locale.getLocaleString( 'S_WEBFEEDS_SUBSCRIBE_HINT' )||'Learn more about feeds';

and mark it up to this one (this will hide the useless link):
document.getElementById('learn').parentNode.style.display="none"

just below we find the line
button.firstChild.nodeValue = opera.locale.getLocaleString( 'S_MINI_FEED_SUBSCRIBE' )||'Subscribe';

and right below it we add
var button2=document.createElement('button')
var feedReaderName= "Google Reader" //
var feedReader= "http://www.google.com/reader/view/feed/" // , «feed:»
button2.style.verticalAlign='middle'
button2.textContent=opera.locale.getLocaleString( 'S_MINI_FEED_SUBSCRIBE' )||'Subscribe'+' via '+feedReaderName
button2.addEventListener( 'click', function(){ location.assign(feedReader+escape(location.href))}, false );
heading.appendChild( button2 )


Based on Simon Houston.
You can do better in the comments.

Source: https://habr.com/ru/post/47181/


All Articles