SamyGO Goes to Digital Ocean Host

This is general talk area for things that NOT RELATED WITH TV! Instead, about internal works like web site, forum, wiki, or talking, etc...

User avatar
juusso
SamyGO Moderator
Posts: 10098
Joined: Sun Mar 07, 2010 6:20 pm

Post by juusso » Mon Mar 16, 2015 1:17 pm

1. Do not ever use IE
2. Agree. Quick links sux! give back our Active topics &co links!
:)

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re:

Post by zoelechat » Mon Mar 16, 2015 1:46 pm

juuso wrote:1. Do not ever use IE
Sectroyer, get out of this body :P
I'm not racist against web browsers or OSes, actually I use a frame based browser (Avant Browser) where I can simultaneously open chrome/ie/ff tabs and change on-the-fly, which is really useful in some cases, especially for debugging. But I personnally use firefox as default in 99% cases, I was thinking of remaining IE users. Yes there are, even if most people wrongly think chrome is the best because "a faster way to browse the web: install chrome" (nb: and toolbars, and spywares...) ;)
I do NOT receive any PM. Please use forum.

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat » Mon Mar 16, 2015 2:03 pm

Ah yes, another thing, not that important but just to notice it: "Last visit" date/time was previously not really accurate before migration, but since then it never moved anymore :)

Code: Select all

Last visit was: Thu 12 Mar 2015, 1:03
I do NOT receive any PM. Please use forum.

sectroyer
Official SamyGO Developer
Posts: 5763
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post by sectroyer » Mon Mar 16, 2015 8:44 pm

Okay I have fixed "Unread" :) Just use this Greasemonkey/NinjaKit script:

Code: Select all

// ==UserScript==
// @name   SamyGO Unread        
// @namespace    http://forum.samygo.tv/
// @include        http://forum.samygo.tv/index.php
// ==/UserScript==

elements= document.getElementsByClassName("action-bar");
if(elements.length)
{
  var actionBar=elements[0];
  //alert(actionBar);
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread";
  actionBar.appendChild(unread);
}
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat » Mon Mar 16, 2015 9:30 pm

I can't believe it, now we'd need to patch forum itself :D
I do NOT receive any PM. Please use forum.

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat » Tue Mar 17, 2015 12:09 pm

I improved your idea to "copy" directly options from quick links menu, so that we have all missing ones, and in user selected language! :)
Clipboard01.jpg
Here's code:

Code: Select all

// ==UserScript==
// @name      SamyGO Quicklinks       
// @namespace http://forum.samygo.tv/
// @include   http://forum.samygo.tv/index.php
// @grant none
// ==/UserScript==

var divs = document.querySelector('.dropdown-contents').getElementsByTagName('a');
var actionBar = document.getElementsByClassName('action-bar') [0];
for (var i = 0; i <= 4; i++)
{
  var newElement = document.createElement('a');
  newElement.href = divs[i].href;
  newElement.innerHTML = divs[i].innerHTML;
  actionBar.appendChild(newElement);
  if (i < 4)
    actionBar.appendChild(document.createTextNode(' ? '));
}
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.

sectroyer
Official SamyGO Developer
Posts: 5763
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post by sectroyer » Tue Mar 17, 2015 7:19 pm

Hehe, well I don't use other options :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat » Tue Mar 17, 2015 7:34 pm

Anyway, it's just a temporary fix ;)
I do NOT receive any PM. Please use forum.

sectroyer
Official SamyGO Developer
Posts: 5763
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post by sectroyer » Tue Mar 17, 2015 9:59 pm

Now even better version. Supports sub pages and adds Unread also to "crumbs" bar :D Now it's even better than original :D

Code: Select all

// ==UserScript==
// @name   SamyGO Unread        
// @namespace    http://forum.samygo.tv/
// @include        http://forum.samygo.tv/*
// ==/UserScript==

elements= document.getElementsByClassName("action-bar");
elements2= document.getElementsByClassName("breadcrumbs");
if(elements.length)
{
  var actionBar=elements[0];
  //alert(actionBar);
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread posts";
  unread.style.marginLeft="25px";
  unread.style.marginBottom="10px";
  actionBar.appendChild(unread);
}
if(elements2.length)
{
  //alert(elements2[0].innerHTML);
  var crumbsBar=elements2[0];
  var newcrumb=document.createElement("span");
  newcrumb.className="crumb";
  newcrumb.style.marginLeft="25px";
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread posts";
  newcrumb.appendChild(unread);
  crumbsBar.appendChild(newcrumb);
}
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat » Tue Mar 17, 2015 10:18 pm

I don't see anything better, there's still only "unread posts" (twice!) and no automatic translation nor URL retrieval :)
I know, you're trying to drown my better script amongst tons of crap :P
I do NOT receive any PM. Please use forum.

Post Reply

Return to “General”